# sm.quat.angleAxis

Creates a new quaternion from angle and axis.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.quat.angleAxis( angle, axis )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.quat.md#angleaxis)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `angle` | number | The rotation angle in radians. |
| `axis` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The axis vector to rotate around. |

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Game-Script-Environment/Userdata/Quat.md) | The quaternion for rotating angle radians around axis. |

## Terrain

``` { .lua .api-signature }
sm.quat.angleAxis( angle, axis )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.quat.md#angleaxis)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `angle` | number | The rotation angle in radians. |
| `axis` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The axis vector to rotate around. |

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Terrain-Script-Environment/Userdata/Quat.md) | The quaternion for rotating angle radians around axis. |
