format
typescript
Quaternion.AngleAxis(angle, axis)class: Quaternion
description
Create a rotation that rotates around an axis by a specified angle.
parameter
| param_name | type | description |
|---|---|---|
| angle | number | The angle of rotation. |
| axis | Vector3 | The axis to rotate around. |
return
| type | description |
|---|---|
Quaternion | The rotation. |
code example
typescript
function QuaternionTest (){
let quat_axis = Quaternion.AngleAxis(60, new Vector3(0,1,0));
}