format
typescript
Quaternion.normalizedclass: Quaternion
description
(Read Only) Normalizes the quaternion to a unit quaternion with a length of 1, preserving the original rotation direction and angle of the quaternion. Returns a new normalized quaternion.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Quaternion | The new quaternion. |
code example
typescript
function QuaternionTest (){
let quat_axis = Quaternion.AngleAxis(60, new Vector3(0,1,0));
let quat_nor = quat_axis.Normalized();
}