# Quat.round90

Rounds the quaternion rotation into 90 degree steps

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
quat:round90(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Quat.md#round90)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `quaternion` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The quaternion. |

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Game-Script-Environment/Userdata/Quat.md) | The rounded quaternion. |

## Terrain

``` { .lua .api-signature }
quat:round90(  )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Userdata/Quat.md#round90)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `quaternion` | [Quat](../Terrain-Script-Environment/Userdata/Quat.md) | The quaternion. |

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Terrain-Script-Environment/Userdata/Quat.md) | The rounded quaternion. |
