A 2D vector, sharing Vector3's design: an abstract over a bare {x, y}
structure, so it is layout-compatible with Lua vector2 values returned by
natives and costs nothing at runtime.
Mostly useful for screen coordinates (World3dToScreen2d, text placement)
and for flat, ground-plane math where height is irrelevant.
Static variables
Static methods
staticinlinecross(this:Vector2Data, rhs:Vector2):Float
The Z component of the 3D cross product — positive when rhs is counter-clockwise from this.
staticinlinerotate(this:Vector2Data, degrees:Float):Vector2
Rotates counter-clockwise around the origin.
staticinlinetoVector3(this:Vector2Data, z:Float = 0):Vector3
Widens to 3D, with z defaulting to ground level 0.