Skip to content

editor / cornersWithRadii

Function: cornersWithRadii() ​

cornersWithRadii(points, radii): readonly Corner[]

Defined in: model/corners-with-radii.ts:19

Corners of a shape: each vertex of its contour with the requested radius of the same number (ADR-0029), clamped later by the geometry of F01 (ADR-0007).

Parameters ​

points ​

readonly Point[]

vertices of the contour, in drawing order (Q11)

radii ​

readonly number[]

requested radius of each vertex, as many as points (areValidRadii); a vertex without one is sharp (radius 0), as a new vertex is (ADR-0029)

Returns ​

readonly Corner[]

one corner per vertex, in drawing order

Kind ​

domain

See ​

docs/domain/shapes.md#_2-corner-radius