format
typescript
Quaternion.Normalize()class: Quaternion
description
Normalize the quaternion to a unit quaternion with a length of 1, while preserving the original quaternion's rotation direction and angle.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
void |
code example
typescript
function QuaternionTest (){
let quat_axis = Quaternion.AngleAxis(60, new Vector3(0,1,0));
quat_axis.Normalize();
}