Skip to content

@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

ParameterTypeDescription
polygonPolygonThe polygon to extract sides from

Returns

Generator<LineSegment>

Generator that yields line segments for each edge