Class PointyRhombMap
The default maps that works with PointyRhombGrids.
[Version(1, 0, 0)]
public class PointyRhombMap : AbstractMap<PointyRhombPoint>, IMap<PointyRhombPoint>, IGridToWorldMap<PointyRhombPoint>
- Inheritance
-
PointyRhombMap
- Implements
- Inherited Members
- Extension Methods
Constructors
PointyRhombMap(Vector2)
public PointyRhombMap(Vector2 cellDimensions)
Parameters
cellDimensions
Vector2
Methods
GetCellDimensions(PointyRhombPoint)
Overrides this method to get custom Grid dimension calculations
public override Vector2 GetCellDimensions(PointyRhombPoint point)
Parameters
point
PointyRhombPoint
Returns
GridToWorld(PointyRhombPoint)
This method maps a grid point to a world point.
public override Vector2 GridToWorld(PointyRhombPoint point)
Parameters
point
PointyRhombPoint
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 PointyRhombPoint RawWorldToGrid(Vector2 point)
Parameters
point
Vector2