API Vector2DMixin Cross

Changes a vector to its cross product with another. vector:Cross(other)

Arguments

 * other : - 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