Skip to content

editor / cornerSetbacks

Function: cornerSetbacks() ​

cornerSetbacks(corners): readonly number[]

Defined in: geometry/corner-setbacks.ts:17

Setback requested at every corner of a cyclic contour, before any reduction.

Formula: sᵢ = rᵢ · tan(|τᵢ| / 2).

Parameters ​

corners ​

readonly Corner[]

vertices with their requested radii, in drawing order

Returns ​

readonly number[]

one setback per corner, 0 at aligned vertices

Kind ​

geometry

See ​

DERIV-local-radius-clamp