Interface IShapeInfo<TShapeInfo, TGrid, TPoint, TVectorPoint, TShapeOp>
All Shape Info classes should implement this interface. This provides basic transformations and set operations to combine shape info instances.
[Version(1, 0, 0)]
public interface IShapeInfo<TShapeInfo, TGrid, TPoint, TVectorPoint, TShapeOp> where TShapeInfo : IShapeInfo<TShapeInfo, TGrid, TPoint, TVectorPoint, TShapeOp> where TGrid : IGridSpace<TPoint> where TPoint : ISplicedVectorPoint<TPoint, TVectorPoint>, IGridPoint<TPoint> where TVectorPoint : IVectorPoint<TVectorPoint>
Type Parameters
TShapeInfo
TGrid
TPoint
TVectorPoint
TShapeOp
- Extension Methods
Methods
Difference()
Provides a shape operator that will form the difference of the shape describe by this instance and the shape info generated by one of the shape functions of the shape operator returned by this function.
TShapeOp Difference()
Returns
- TShapeOp
EndShape()
This functions is called to end shape construction and returned a grid described by this shape info.
TGrid EndShape()
Returns
- TGrid
Intersection()
Provides a shape operator that will form the intersection of the shape describe by this instance and the shape info generated by one of the shape functions of the shape operator returned by this function.
TShapeOp Intersection()
Returns
- TShapeOp
Translate(int, int)
TShapeInfo Translate(int x, int y)
Parameters
Returns
- TShapeInfo
Translate(TVectorPoint)
TShapeInfo Translate(TVectorPoint offset)
Parameters
offset
TVectorPoint
Returns
- TShapeInfo
Union()
Provides a shape operator that will form the union of the shape describe by this instance and the shape info generated by one of the shape functions of the shape operator returned by this function.
TShapeOp Union()
Returns
- TShapeOp