- These functions are implemented in
and:GetLength FrameXML/Vector2D.lua FrameXML/Vector3D.lua
.
- These functions are implemented in
Returns a 2D or 3D vector's length.
length = vector:GetLength()
Returns[]
- length
- number - Square root of the sum of the squares of each coordinate.
See also[]
- Vector2DMixin:GetLengthSquared() - Omits the square root; equivalent to computing a vector's dot product with itself.
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 102, archived at Townlong-Yak
- ^ 2017-03-28, Vector3D.lua, version 7.2.0.23835, near line 110, archived at Townlong-Yak