Vector2DMixin

From Wowpedia
Jump to: navigation, search

Defined in FrameXML/Vector2D.lua, the Vector2DMixin interface represents a math vector with X and Y coordinates.

Construction

Methods

Fundamental
Manipulation
Calcuation

Example

local foo = CreateVector2D(14, 10)
print(foo:GetXY()) -- 14, 10

local bar = CreateVector2D(2, 3)
foo:Add(bar)
print(foo:GetXY()) -- 16, 13

Patch changes

See also

External Links

Error: unknown or undetected type.

References

 
  1. ^ 2020-06-08, Vector2D.lua, version 9.0.1.34714, near line 109, archived at Townlong-Yak
  2. ^ 2018-07-16, Vector2D.lua, version 8.0.1.27101, near line 122, archived at Townlong-Yak
  3. ^ 2017-03-28, Vector2D.lua, version 7.2.0.23835, near line 41, archived at Townlong-Yak
  4. ^ 2016-10-25, Vector2D.lua, version 7.1.0.22908, archived at Townlong-Yak