format
typescript
Quaternion.InvertRotateVector(src)class: Quaternion
description
Calculate the vector after inverse rotation around the current quaternion.
parameter
| param_name | type | description |
|---|---|---|
| src | Vector3 | The target vector. |
reture
| type | description |
|---|---|
Vector3 | The vector after inverse rotation. |
code example
typescript
function QuaternionTest (){
let x = new Vector3(1,0,0);
let quat_axis = Quaternion.AngleAxis(60,new Vector3(0,1,0));
let rx = quat_axis.RotateVector(x);
let ix = quat_axis.InvertRotateVector(rx);
}