# `ExMujoco.Types.DataType`
[🔗](https://github.com/d-led/ex.mujoco/blob/main/lib/ex_mujoco/types/data_type.ex#L2)

`mjtDataType`, from MuJoCo's headers, as numbers. All 4 values carry a number in the header.

# `t`

```elixir
@type t() :: integer()
```

# `axis`

```elixir
@spec axis() :: 2
```

mjDATATYPE_AXIS is 2.

# `positive`

```elixir
@spec positive() :: 1
```

mjDATATYPE_POSITIVE is 1.

# `quaternion`

```elixir
@spec quaternion() :: 3
```

mjDATATYPE_QUATERNION is 3.

# `real`

```elixir
@spec real() :: 0
```

mjDATATYPE_REAL is 0.

# `to_atom`

```elixir
@spec to_atom(integer() | atom()) :: atom() | nil
```

The name behind an integer. An atom is already one.

# `to_integer`

```elixir
@spec to_integer(t() | atom()) :: integer() | nil
```

The integer behind a name. An integer is already one.

# `values`

```elixir
@spec values() :: [{atom(), integer()}]
```

Every value, as `{name, integer}`, in the order the header lists them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
