@technobuddha > library > Geometry > Line Segment
Function: polygonSides()
ts
function polygonSides(polygon: Polygon): Generator<LineSegment>;Defined in: polygon-sides.ts:13
Generate line segments for each side of the polygon.
Parameters
| Parameter | Type | Description |
|---|---|---|
polygon | Polygon | The polygon to extract sides from |
Returns
Generator that yields line segments for each edge