sm.quat.slerp
Performs a spherical linear interpolation between two quaternion.
Kind: Function
Environments: Game, Terrain
Game
sm.quat.slerp( quaternion1, quaternion2, t )
Parameters:
| Name | Type | Description |
|---|---|---|
quaternion1 |
Quat | The first quaternion. |
quaternion2 |
Quat | The second quaternion. |
t |
number | Interpolation amount between the two inputs. |
Returns:
| Type | Description |
|---|---|
| Quat | The interpolated quaternion. |
Terrain
sm.quat.slerp( quaternion1, quaternion2, t )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
quaternion1 |
Quat | The first quaternion. |
quaternion2 |
Quat | The second quaternion. |
t |
number | Interpolation amount between the two inputs. |
Returns:
| Type | Description |
|---|---|
| Quat | The interpolated quaternion. |