Function: clipHalfPlane()
ts
function clipHalfPlane(
poly,
point,
normal,
offset?
): Polygon;Keep the part of poly where dot(normal, v - point) >= offset (one pass of Sutherland–Hodgman).
Parameters
| Parameter | Type | Default value |
|---|---|---|
poly | Polygon | undefined |
point | Vec | undefined |
normal | Vec | undefined |
offset | number | 0 |