Method angle
angle(quaternion, quaternion)
Returns the angle in radians between two unit quaternions.
Declaration
public static float angle(quaternion q1, quaternion q2)
Parameters
| Type | Name | Description |
|---|---|---|
| quaternion | q1 | The first quaternion. |
| quaternion | q2 | The second quaternion. |
Returns
| Type | Description |
|---|---|
| float | The angle between two unit quaternions. |