Compute unit vector of an angle. The unit vector is essentially the direction of an angle.
unitVector(90); // 90 degunitVector(`1.2rad`); // 1.2 in radians Copy
unitVector(90); // 90 degunitVector(`1.2rad`); // 1.2 in radians
The coordinate space is -1..1:
y 1 | |-1 --+--- 1 x | | -1 Copy
y 1 | |-1 --+--- 1 x | | -1
See fromUnitVector to convert back to an angle
Angle specified in degrees, or an angle with units
Compute unit vector of an angle. The unit vector is essentially the direction of an angle.
The coordinate space is -1..1:
See fromUnitVector to convert back to an angle