format
typescript
Quaternion.Lerp(q1, q2, t)class: Quaternion
description
Interpolates between q1 and q2 by t and then normalizes the result.
parameter
| param_name | type | description |
|---|---|---|
| q1 | Quaternion | The starting quaternion. |
| q2 | Quaternion | The target quaternion. |
| t | number | The interpolation value. |
return
| type | description |
|---|---|
Quaternion | The interpolated quaternion. |
code example
typescript
function QuaternionTest (){
let identity = Quaternion.identity;
let quat_axis = Quaternion.AngleAxis(60, new Vector3(0,1,0));
let quat_lerp = Quaternion.Lerp(identity,quat_axis,0.5);
}