Class PointyTriShapeInfo<TCell>
Provides the implementation for AbstractSplicedShapeInfo to be used with PointyTriGrid.
public class PointyTriShapeInfo<TCell> : AbstractSplicedShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>, IShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>
Type Parameters
TCell
- Inheritance
-
AbstractShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>AbstractSplicedShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>PointyTriShapeInfo<TCell>
- Implements
-
IShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>
- Inherited Members
- Extension Methods
Constructors
PointyTriShapeInfo(ShapeStorageInfo<PointyTriPoint>)
public PointyTriShapeInfo(ShapeStorageInfo<PointyTriPoint> info)
Parameters
Methods
ArrayPointFromGridPoint(FlatHexPoint)
protected override ArrayPoint ArrayPointFromGridPoint(FlatHexPoint point)
Parameters
point
FlatHexPoint
Returns
EndGroup(PointyTriOp<TCell>)
Only call this method from within a PointyTriOp method (usually, in client code, this will be in an extension).
Since 1.1
public PointyTriShapeInfo<TCell> EndGroup(PointyTriOp<TCell> op)
Parameters
op
PointyTriOp<TCell>The operator on which this shape is defined.
Returns
- PointyTriShapeInfo<TCell>
GridPointFromArrayPoint(ArrayPoint)
protected override FlatHexPoint GridPointFromArrayPoint(ArrayPoint point)
Parameters
point
ArrayPoint
Returns
MakeOp(ShapeStorageInfo<PointyTriPoint>, Func<ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>>)
protected override PointyTriOp<TCell> MakeOp(ShapeStorageInfo<PointyTriPoint> shapeInfo, Func<ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>> combineInfo)
Parameters
shapeInfo
ShapeStorageInfo<PointyTriPoint>combineInfo
Func<ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>>
Returns
- PointyTriOp<TCell>
MakePoint(int, int)
protected override FlatHexPoint MakePoint(int x, int y)
Parameters
Returns
MakeShape(int, int, Func<PointyTriPoint, bool>, FlatHexPoint)
protected override PointyTriGrid<TCell> MakeShape(int x, int y, Func<PointyTriPoint, bool> isInside, FlatHexPoint offset)
Parameters
x
inty
intisInside
Func<PointyTriPoint, bool>offset
FlatHexPoint
Returns
- PointyTriGrid<TCell>
MakeShapeInfo(ShapeStorageInfo<PointyTriPoint>)
protected override PointyTriShapeInfo<TCell> MakeShapeInfo(ShapeStorageInfo<PointyTriPoint> shapeStorageInfo)
Parameters
shapeStorageInfo
ShapeStorageInfo<PointyTriPoint>
Returns
- PointyTriShapeInfo<TCell>