ExMujoco.Types.GridPos (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjGRID_BOTTOM is 5.

mjGRID_BOTTOMLEFT is 2.

mjGRID_BOTTOMRIGHT is 3.

mjGRID_LEFT is 6.

mjGRID_RIGHT is 7.

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

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

mjGRID_TOP is 4.

mjGRID_TOPLEFT is 0.

mjGRID_TOPRIGHT is 1.

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

Types

t()

@type t() :: integer()

Functions

bottom()

@spec bottom() :: 5

mjGRID_BOTTOM is 5.

bottomleft()

@spec bottomleft() :: 2

mjGRID_BOTTOMLEFT is 2.

bottomright()

@spec bottomright() :: 3

mjGRID_BOTTOMRIGHT is 3.

left()

@spec left() :: 6

mjGRID_LEFT is 6.

right()

@spec right() :: 7

mjGRID_RIGHT is 7.

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.

top()

@spec top() :: 4

mjGRID_TOP is 4.

topleft()

@spec topleft() :: 0

mjGRID_TOPLEFT is 0.

topright()

@spec topright() :: 1

mjGRID_TOPRIGHT is 1.

values()

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

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