# Quaternion

`import { Quaternion } from "destack:math";`

Quaternion rotation value.

```ds title="Quaternion"
export struct Quaternion<T: Float> {
    x: T;
    y: T;
    z: T;
    w: T;
}
```

[language/library/src/math/quaternion.ds:9:21](https://github.com/destack-sh/destack/blob/main/language/library/src/math/quaternion.ds#L9-L21)

## Members

### `x: T`

The vector x component.

### `y: T`

The vector y component.

### `z: T`

The vector z component.

### `w: T`

The scalar component.
