Create a new Vector2
instance.
The X coordinate.
The Z coordinate.
Compare an instance of Vector3
with another.
The Vector3
to compare to.
true
if they're equal otherwise false
.
Get the x coordinate.
The x coordinate's value.
Get the z coordinate.
The z coordinate's value.
Static
fromCreates a new Vector2 instance from an object with x and z properties.
The object containing x and z properties.
A new Vector2 instance.
2D Vector.