#include <polyclip.h>
Inheritance diagram for csBoxClipper:
Public Methods | |
csBoxClipper (const csBox2 &b) | |
Initializes the clipper object to the given bounding region. | |
csBoxClipper (float x1, float y1, float x2, float y2) | |
Initializes the clipper object to a rectangle with the given coords. | |
virtual UByte | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount) |
Simple clipping. | |
virtual UByte | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount, csBox2 &BoundingBox) |
Clip and compute the bounding box. | |
virtual UByte | Clip (csVector2 *InPolygon, int InCount, csVector2 *OutPolygon, int &OutCount, csVertexStatus *OutStatus) |
Clip and return additional information about each vertex. | |
virtual int | ClassifyBox (const csBox2 &box) |
Classify some bounding box against this clipper. | |
virtual bool | IsInside (const csVector2 &v) |
Return true if given point is inside (or on bound) of clipper polygon. | |
virtual int | GetVertexCount () |
Return number of vertices for this clipper polygon. | |
virtual csVector2* | GetClipPoly () |
Return a pointer to the array of csVector2's. |