# Radian-Degree Converter

## Overview

![The Radian-Degree Converter Node.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-9d38425b031e05fa32dcdaffd00eccab1b636e4c%2Fnode-radian-degree-convertor2.png?alt=media)

**Radian-Degree Converter** takes a single **Float** value, representing an angle, in degrees (°) or radians (rad), and converts it from one unit to the other.

The equation used by the **Node** is determined by the `Mode` **Attribute**. The equations are:

* `Radian_to_Degree`: *D* = *R* x 180/π.
* `Degree_to_Radian`: *R* = *D* x π/180,

where *R* is an angle in radians (rad) and *D* is an angle in degrees (°).

[**Scope**](https://docs.incari.com/incari-studio/2022.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Radian-Degree Converter Node Attributes.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-d58b384551d16286efb133375c944836c49f502b%2Fnode-radian-degree-convertor2-attr.png?alt=media)

| Attribute       | Type          | Description                                                                      |
| --------------- | ------------- | -------------------------------------------------------------------------------- |
| `Mode`          | **Drop-down** | Determines which conversion equation is used.                                    |
| `Default Value` | **Float**     | The default value of `Input`, if no value is provided in the `Input` **Socket**. |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Input`           | **Float** | The angle to convert.                                                 |

## 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. |
| `Output`           | **Float** | The converted value.                                                                                                                   |

## See Also

* [**Trigonometry**](https://docs.incari.com/incari-studio/2022.1/toolbox/math/trigonometry)

## External Links

* [*Trigonometry*](https://www.khanacademy.org/math/trigonometry) on Khan Academy.
* [*Radians*](https://www.mathsisfun.com/geometry/radians.html) on Maths is Fun.
* [*Degrees*](https://www.mathsisfun.com/geometry/degrees.html) on Maths is Fun.
