Determine the clip flags for the given vector.
The clip flags are a combination of inside and outside flags that can be used to easily reject an entire buffer if it is completely inside or outside and can also be used to detect the most commen cases in clipping (e.g., intersection with one boundary only).
Clip the polygon defined by vtxCount vertices in vtxArray. tempVtxArray is a temporary storage area used for copying the vertices back and forth during clipping operation. outMask is the full clip mask of the vertex buffer, allowing some optimizations of the clipping code.
NOTE: It is significant here that the contents of vtxArray and tempVtxArray are equal.
Clip the elements in the vertex buffer. Return true if all vertices are inside.
Return false if all vertices are outside. If partial clipping occurs, return nil.
Clip the elements in the vertex buffer. Return true if all vertices are inside.
Return false if all vertices are outside. If partial clipping occurs, return nil.