SquareGrid<U extends num> class
Constructors
-
SquareGrid(int tilesInRow, {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 pairinherited
- tileHeight → double
-
no setterinherited
- tileHeightRatio → double
-
no setteroverride
- tileShape → Tile
-
no setteroverride
- tilesInRow ↔ int
-
getter/setter pairinherited
- tileWidth → double
-
no setterinherited
-
zero
↔ Point<
U> -
getter/setter pairinherited
Methods
-
gridSnapCentered(
Point< num> center, int size) → Point<num> -
inherited
-
gridToWorldSpace(
Point< num> gridPos) → Point<double> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
snapToIntersection(
Point< num> worldPos) → Point<num> -
override
-
tileCenterInGrid(
Point< int> tile) → Point<double> -
override
-
tileCenterInWorld(
Point< int> tile) → Point<double> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
worldSnapCentered(
Point< num> center, int size) → Point<num> -
inherited
-
worldToGridSpace(
Point< num> worldPos) → Point<double> -
inherited
-
worldToTile(
Point< num> worldPos) → Point<int> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited