format
typescript
Quaternion.Angle(lhs, rhs)class: Quaternion
description
Returns the angle between two rotations, lhs and rhs.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Quaternion | The first rotation. |
| rhs | Quaternion | The second rotation. |
return
| type | description |
|---|---|
number | The angle between the two rotations. |
code example
typescript
function QuaternionTest (){
let identity = Quaternion.identity;
let quat_axis = Quaternion.AngleAxis(60, new Vector3(0,1,0));
let rotate_angle = Quaternion.Angle(identity, quat_axis);
}