> For the complete documentation index, see [llms.txt](https://tomaspietravallo.gitbook.io/sparkar-volts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tomaspietravallo.gitbook.io/sparkar-volts/volts.quaternion/overview.md).

# Overview

In this section you'll find everything related to the VOLTS.Quaternion class

{% tabs %}
{% tab title="v3+" %}

```typescript
import { Quaternion, Vector } from 'volts';

// A 90º turn along the X axis
const rotation = Quaternion.fromEuler(1.57, 0, 0);

// You can rotate vectors by a quaternion
new Vector(0,0,-1).applyQuaterion(rotation)

// Or get a Reactive QuaternionSignal
// by accessing the signal component
rotation.signal;
```

{% endtab %}
{% endtabs %}

{% content-ref url="/pages/AC0XxRlOHbBmrNc7e1cE" %}
[Quaternion methods](/sparkar-volts/volts.quaternion/quaternion-methods.md)
{% endcontent-ref %}
