[][src]Module duckduckgeo::grid

2d grid library with the ability to the raycast to detect which cell a ray hits.

Modules

collide
raycast

A way to cast a ray until it hits a cell

Structs

CellIterator

Iterate over every element in a grid

Grid2D

A parsed map that is no longer represented as a string.

GridByte2D
GridViewPort

A way to map a grid to world coordinates and vice versa

Iterator2D

Iterate over every cell position in a grid.

Map

Represents a ascii map where █ are treated as walls and spaces are treated as empty cells. This is still in its string representation.

SpotPicker

Enums

CardDir

Represents one of 4 carinal directions (without diagonals)

CardDir2

Represents one of 8 cardinal directions (with diagonals).

GridRayCastResult

Returns the result of the grid raycast

Type Definitions

GridNum

The type used for the dimension and indexing of the grid

WorldNum

The type used to represent a world position.