# Rotation Matrix

## Overview

![The Rotation Matrix Node.](/files/J5hQnrp3DzexJto1vuvc)

The **Rotation Matrix** **Node** receives three angles as inputs and generates a **Matrix4x4** that represents a *rotation* along the X, Y, and Z axes in the received angles.

## Attributes

### Inputs

| Attribute         | Type      | Description                                                                                                                                       |
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Default Angle X` | **Float** | The angle, in degrees, along the X axis in which the *rotation* will be performed, if no value is provided in the `Angle X in degree` **Socket**. |
| `Default Angle Y` | **Float** | The angle, in degrees, along the Y axis in which the *rotation* will be performed, if no value is provided in the `Angle Y in degree` **Socket**. |
| `Default Angle Z` | **Float** | The angle, in degrees, along the Z axis in which the *rotation* will be performed, if no value is provided in the `Angle Z in degree` **Socket**. |

## Inputs

| Input               | Type      | Description                                                                        |
| ------------------- | --------- | ---------------------------------------------------------------------------------- |
| *Pulse Input* (►)   | **Pulse** | A standard **Input Pulse**, to trigger the execution of the **Node**.              |
| `Angle X in degree` | **Float** | The angle, in degrees, along the X axis in which the *rotation* will be performed. |
| `Angle Y in degree` | **Float** | The angle, in degrees, along the Y axis in which the *rotation* will be performed. |
| `Angle Z in degree` | **Float** | The angle, in degrees, along the Z axis in which the *rotation* will be performed. |

## Outputs

| Output             | Type          | Description                                                                                                                            |
| ------------------ | ------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**     | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Rotation Matrix`  | **Matrix4x4** | A **Matrix4x4** representing *rotations* along the X, Y, and Z axes in the given angles.                                               |

## External Links

* [*Rotation matrix*](https://en.wikipedia.org/wiki/Rotation_matrix) on Wikipedia.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.incari.com/incari-studio/2021.4/toolbox/math/rotation-matrix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
