CreateVector2D()
(Redirected from API CreateVector3D)
Jump to navigation
Jump to search
- These functions are implemented in
FrameXML/Vector2D.lua
andFrameXML/Vector3D.lua
.
- These functions are implemented in
Creates a new vector which inherits the methods of Vector2DMixin or Vector3DMixin.
vector = CreateVector2D(x, y) vector = CreateVector3D(x, y, z)
Arguments
- x, y, z
- number - Cartesian coordinates.
Returns
- vector
- table - A Vector2DMixin or Vector3DMixin.
Patch changes
- Patch 7.2.0 (2017-03-28): Added.[1][2]
References
- ^ 2017-03-28, Vector2D.lua, version 7.2.0.23835, near line 43, archived at Townlong-Yak
- ^ 2017-03-28, Vector3D.lua, version 7.2.0.23835, near line 49, archived at Townlong-Yak