Function TileHandler.ClipAgainstRectangle
ClipAgainstRectangle
(UnsafeSpan<Int3> clipIn, UnsafeSpan<Int3> clipTmp, Vector2Int size)
Clips the input polygon against a rectangle with one corner at the origin and one at size in XZ space.
Private
Static
int ClipAgainstRectangle (
clipIn | Input vertices. Output will also be placed here. |
|
clipTmp | Temporary vertices. This buffer must be large enough to contain all output vertices. |
|
Vector2Int | size | The clipping rectangle has one corner at the origin and one at this position in XZ space. |
Clips the input polygon against a rectangle with one corner at the origin and one at size in XZ space.
Return
Number of output vertices