Grid<U extends num> class abstract

Implementers

Constructors

Grid({Point<U>? zero, Point<U>? size})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Point<U>
getter/setter pair
zero Point<U>
getter/setter pair

Methods

gridSnapCentered(Point<num> center, int size) Point<num>
gridToWorldSpace(Point<num> gridPos) Point<double>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
worldSnapCentered(Point<num> center, int size) Point<num>
worldToGridSpace(Point<num> worldPos) Point<double>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

hexagonal<U extends num>(int tilesInRow, {bool horizontal = true, Point<U>? zero, Point<U>? size}) HexagonalGrid<U>
square<U extends num>(int tilesInRow, {Point<U>? zero, Point<U>? size}) SquareGrid<U>
unclamped<U extends num>({double scale = 1, Point<U>? zero}) UnclampedGrid<U>