19 lines
611 B
Lua
19 lines
611 B
Lua
---@meta
|
|
|
|
---The vector API allows you to create a `Vector` object
|
|
---
|
|
---[Vectors on Wikipedia](http://en.wikipedia.org/wiki/Euclidean_vector)
|
|
---
|
|
------
|
|
---[Official Documentation](https://tweaked.cc/module/vector.html)
|
|
vector = {}
|
|
|
|
---Create a new `Vector` object with the given coordinates
|
|
---@param x number The x coordinate or direction
|
|
---@param y number The y coordinate or direction
|
|
---@param z number The z coordinate or direction
|
|
---@return ccTweaked.Vector vector A new `Vector` object
|
|
------
|
|
---[Official Documentation](https://tweaked.cc/module/vector.html#v:new)
|
|
function vector.new(x, y, z) end
|