sm.quat.angleAxis
Creates a new quaternion from angle and axis.
Kind: Function
Environments: Game, Terrain
Game
sm.quat.angleAxis( angle, axis )
Parameters:
| Name | Type | Description |
|---|---|---|
angle |
number | The rotation angle in radians. |
axis |
Vec3 | The axis vector to rotate around. |
Returns:
| Type | Description |
|---|---|
| Quat | The quaternion for rotating angle radians around axis. |
Terrain
sm.quat.angleAxis( angle, axis )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
angle |
number | The rotation angle in radians. |
axis |
Vec3 | The axis vector to rotate around. |
Returns:
| Type | Description |
|---|---|
| Quat | The quaternion for rotating angle radians around axis. |