Interface representing a mathematical vector with basic operations. Designed to be implemented by Vector2D and Vector3D.
Calculates the Euclidean length of the vector.
The length.
Calculates the squared length of the vector (faster than length()).
The squared length.
Normalizes the vector to a unit length of 1.
This vector instance for chaining.
Scales the vector components by a scalar value.
The scalar factor.
Interface representing a mathematical vector with basic operations. Designed to be implemented by Vector2D and Vector3D.