five-on-it / packages/catalogue/src/city/lines / clipToSquare
Function: clipToSquare()
clipToSquare(
poly,half):Pt[]
Defined in: packages/catalogue/src/city/lines.ts:459
A polygon cut to the square of half-side half round the origin (Sutherland–Hodgman, one side at a time).
Parameters
poly
readonly Pt[]
half
number
Returns
Pt[]