alias Glint::Position

Overview

A Glint::Position is a Glint::Vector2.

Alias Definition

Glint::Vector2

Defined in:

glint/vector2.cr

Constant Summary

DOWN = Vector2.new(0, 1)

Vector representing the down direction.

DOWN_LEFT = DOWN + LEFT

Vector representing the down-left direction.

DOWN_RIGHT = DOWN + RIGHT

Vector representing the down-right direction.

EAST = RIGHT

Vector representing the east direction.

LEFT = Vector2.new(-1, 0)

Vector representing the left direction.

NORTH = UP

Vector representing the north direction.

NORTH_EAST = NORTH + EAST

Vector representing the north east direction.

NORTH_WEST = NORTH + WEST

Vector representing the north west direction.

ONE = Vector2.new(1, 1)

A unit vector.

RIGHT = Vector2.new(1, 0)

Vector representing the right direction.

SOUTH = DOWN

Vector representing the south direction.

SOUTH_EAST = SOUTH + EAST

Vector representing the south east direction.

SOUTH_WEST = SOUTH + WEST

Vector representing the south west direction.

UNIT = ONE

A unit vector.

UP = Vector2.new(0, -1)

Vector representing the up direction.

UP_LEFT = UP + LEFT

Vector representing the up-left direction.

UP_RIGHT = UP + RIGHT

Vector representing the up-right direction.

WEST = LEFT

Vector representing the west direction.

ZERO = Vector2.new(0, 0)

A zero vector.