Click or drag to resize

RectOpTCellShape Method

Overload List
  NameDescription
Public methodShape(Int32, Int32, FuncRectPoint, Boolean)
The same as Shape with all parameters, but with bottomLeft Point set to RectPoint.Zero.
Public methodShape(Int32, Int32, FuncRectPoint, Boolean, RectPoint)
Use this function to create shapes to ensure they fit into memory. The test function can test shapes anywhere in space.If you specify the bottom corner (in terms of the storage rectangle), the shape is automatically translated in memory to fit, assuming memory width and height is big enough. Strategy for implementing new shapes: - First, determine the test function. - Next, draw a storage rectangle that contains the shape. - Determine the storgae rectangle width and height. - Finally, determine the grid-space coordinate of the left bottom corner of the storage rectangle. Then define your function as follows:
public RectShapeInfo<TCell> MyShape()
{
    Shape(stargeRectangleWidth, storageRectangleHeight, isInsideMyShape, storageRectangleBottomleft);
}
Top
See Also