alias for scalar
Calculate the angle between two vectors. If the second paramter is true, the return value is converted to degrees. Otherwise, radiant is used.
Returns the Vector as static array.
Calculate the diff between two vectors.
Checks if this vector is empty. This means that his coordinates are 0.
Move the current coordinates.
Negate this Vector
Normalize the vector in which the coordinates are divided by the length.
Supported operation: +, -, *, / and %
Supported operation: +, -, *, / and %
Compares two vectors by checking whether the coordinates are equals.
Returns a negated copy of this Vector.
Supported operation: +=, -=, *=, /= and %=
Supported operation: +=, -=, *=, /= and %=
Calculate the scalar product.
Set new coordinates.
Calculate the length.
Vector2 is a structure that defines a two-dimensional point.