Class FlatBrickMap
A map that can be used with a PointyHexGrid to get a brick-wall pattern (rotated by 90 degrees). The cells are rectangular.
[Version(1, 0, 0)]
public class FlatBrickMap : AbstractMap<FlatHexPoint>, IMap<FlatHexPoint>, IGridToWorldMap<FlatHexPoint>
- Inheritance
-
FlatBrickMap
- Implements
- Inherited Members
- Extension Methods
Constructors
FlatBrickMap(Vector2)
public FlatBrickMap(Vector2 cellDimensions)
Parameters
cellDimensions
Vector2
Methods
GridToWorld(FlatHexPoint)
This method maps a grid point to a world point.
public override Vector2 GridToWorld(FlatHexPoint point)
Parameters
point
FlatHexPoint
Returns
RawWorldToGrid(Vector2)
This method maps a world point to a grid point, assuming that the anchor point is centered in the cell.This will allow the index accessors[] to give correct results for any anchoring.
public override FlatHexPoint RawWorldToGrid(Vector2 point)
Parameters
point
Vector2