Skip to content

editor / hasLength

Function: hasLength() ​

hasLength(piece): boolean

Defined in: geometry/has-length.ts:16

Whether a contour piece is drawn: its ends are at least EPSILON apart (Q10).

A segment between two tangent points that meet, or the arc of a corner that keeps no fillet, has no length and is dropped from a rounded contour.

Parameters ​

piece ​

ContourPiece

segment or arc

Returns ​

boolean

true when the distance between its ends is at least EPSILON

Kind ​

geometry

See ​

DERIV-fillet-arc