Vector2DMixin:GetLength()

From Warcraft Wiki
Jump to navigation Jump to search
These functions are implemented in :GetLength FrameXML/Vector2D.lua and FrameXML/Vector3D.lua.

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

Patch changes

References

 
  1. ^ 2017-03-28, Vector2D.lua, version 7.2.0.23835, near line 102, archived at Townlong-Yak
  2. ^ 2017-03-28, Vector3D.lua, version 7.2.0.23835, near line 110, archived at Townlong-Yak