Vector2 defines __unm operation
Vector2 defines the __unm
operation, which returns a Vector2 with the negation of each of its components.
print(-Vector2.new(1,2) == Vector2.new(-1,-2)) --> true
Vector2:Cross clarification
number Vector2:Cross ( Vector2 other )
Returns the cross product of the two vectors
The cross product is not defined for two-dimensional vectors, so this description has no meaning. The calculation performed here is a 3D cross product where the Z component is set to 0.
print(Vector2.new(7,17):Cross(Vector2.new(37,47)) == Vector3.new(7,17,0):Cross(Vector3.new(37,47,0)).Z) --> true