Vector2DMixin :Cross()
Jump to navigation
Jump to search
- These functions are implemented in
and:Cross FrameXML/Vector2D.lua FrameXML/Vector3D.lua
.
- These functions are implemented in
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
- Patch 7.2.0 (2017-03-28): Added.[1][2]
External links
- Cross product on Wikipedia.
References
- ^ 2017-03-28, Vector2D.lua, version 7.2.0.23835, near line 90, archived at Townlong-Yak
- ^ 2017-03-28, Vector3D.lua, version 7.2.0.23835, near line 98, archived at Townlong-Yak