ExMujoco.Types.GridPos (ExMujoco v0.2.2)

Copy Markdown View Source

mjtGridPos_ — grid position for overlay. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.

Summary

Functions

mjGRID_BOTTOM is 5 — bottom center.

mjGRID_BOTTOMLEFT is 2 — bottom left.

mjGRID_BOTTOMRIGHT is 3 — bottom right.

mjGRID_LEFT is 6 — left center.

mjGRID_RIGHT is 7 — right center.

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

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

mjGRID_TOP is 4 — top center.

mjGRID_TOPLEFT is 0 — top left.

mjGRID_TOPRIGHT is 1 — top right.

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 — bottom center.

bottomleft()

@spec bottomleft() :: 2

mjGRID_BOTTOMLEFT is 2 — bottom left.

bottomright()

@spec bottomright() :: 3

mjGRID_BOTTOMRIGHT is 3 — bottom right.

left()

@spec left() :: 6

mjGRID_LEFT is 6 — left center.

right()

@spec right() :: 7

mjGRID_RIGHT is 7 — right center.

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 — top center.

topleft()

@spec topleft() :: 0

mjGRID_TOPLEFT is 0 — top left.

topright()

@spec topright() :: 1

mjGRID_TOPRIGHT is 1 — top right.

values()

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

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