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