public IGrid <TNewCell, PointyHexPoint> MakeVertexGrid <TNewCell>() { var vertices = this.SelectMany(x => x.GetVertices()); var storage = PointyHexGrid <TNewCell> .CalculateStorage(vertices); var offset = PointyHexGrid <TNewCell> .GridPointFromArrayPoint(storage.offset); return(new PointyHexGrid <TNewCell>(storage.dimensions.X, storage.dimensions.Y, x => IsInsideVertexGrid(x + offset), offset)); }
public static PointyHexPoint GridPointFromArrayPoint(ArrayPoint point) { return(PointyHexGrid <TCell> .GridPointFromArrayPoint(point)); }
protected override PointyHexPoint GridPointFromArrayPoint(ArrayPoint point) { return(PointyHexGrid <TCell> .GridPointFromArrayPoint(point)); }