Table of Contents

Class PointyTriMap

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

The default map between world coordinates and PointyTri coordinates.

[Version(1, 0, 0)]
public class PointyTriMap : AbstractMap<PointyTriPoint>, IMap<PointyTriPoint>, IGridToWorldMap<PointyTriPoint>
Inheritance
PointyTriMap
Implements
Inherited Members
Extension Methods

Constructors

PointyTriMap(Vector2)

public PointyTriMap(Vector2 cellDimensions)

Parameters

cellDimensions Vector2

Methods

GridToWorld(PointyTriPoint)

This method maps a grid point to a world point.

public override Vector2 GridToWorld(PointyTriPoint point)

Parameters

point PointyTriPoint

Returns

Vector2

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 PointyTriPoint RawWorldToGrid(Vector2 point)

Parameters

point Vector2

Returns

PointyTriPoint