Type Definition semeion::space::Offset

source · []
pub type Offset = Point<i32>;
Expand description

Represents an offset from an Entity location within the environment.

Implementations

Gets a list of offsets from a central location in a grid, to all the tiles located in its border, according to the given distance between the tile in the center and the border (Scope), in arbitrary order. Returns a single Offset equal to the origin (0, 0) if the given Scope is equal to 0.

Gets a list of offsets from a central location in a grid, to all the 4 tiles located in the corners of its border, according to the given distance between the tile in the center and the border (Scope), in arbitrary order.