Functions
Link copied to clipboard
Calculates the angle between two 2D vectors and returns it in degrees. This version includes robustness improvements for numerical stability. This function throws an IllegalArgumentException if either input vector is a zero vector. The calculated angle represents the shortest angle between the two vectors and is typically in the range [0, 180] degrees.
Link copied to clipboard
Orients a normal vector n to face towards an incident vector i, using a reference normal nRef to determine the orientation.
Link copied to clipboard
Performs unclamped linear interpolation between two 2D vectors, a and b.
Link copied to clipboard
Moves a point current towards a target point by a maximum distance.