ExMujoco.Types.Projection (ExMujoco v0.1.1)

Copy Markdown View Source

mjtProjection, from MuJoCo's headers, as numbers. All 2 values carry a number in the header.

Summary

Functions

mjPROJ_ORTHOGRAPHIC is 1.

mjPROJ_PERSPECTIVE is 0.

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

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

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

Types

t()

@type t() :: integer()

Functions

orthographic()

@spec orthographic() :: 1

mjPROJ_ORTHOGRAPHIC is 1.

perspective()

@spec perspective() :: 0

mjPROJ_PERSPECTIVE is 0.

to_atom(value)

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

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

to_integer(value)

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

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

values()

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

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