| point2line index |
||||
| Name | angleBetweenUnits ( ) | |||
| Description | Returns the angle between the forward angles of two unit vectors.
Use angleBetween() for vectors that are not normalized. This function is only included
to occasionally save a couple of internal normalize calls. The result is always positive. If you also need to know the rotational direction (clockwise or counter-clockwise) use angleFromTo(). |
|||
| Syntax | angleBetweenUnits(vector1, vector2); |
|||
| Parameters |
|
|||
| Returns | angle in radians, or NaN if vectors are parallel (float) |
|||
| Usage | Web & Application | |||
| Related | angleBetween ( ) |
|||
| Examples | |
|||