Wowpedia
Advertisement
Wowpedia
230,025
pages
These functions are implemented by FrameXML in FrameXML/Vector2D.lua and FrameXML/Vector3D.lua.

Changes a vector to its cross product with another.

vector:Cross(other)

Arguments

other 
table - A Vector2DMixin or Vector3DMixin (must be the same kind as the original vector).

Details

  • Cross products only exist in 3D space, so Vector2DMixins are treated as having a temporary Z=0 and the resulting product is rotated back to the horizontal:
    • X becomes the magnitude
    • Y becomes zero

Patch changes

External links

References

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