editor / edgeFactor
Function: edgeFactor()
edgeFactor(
length,demand):number
Defined in: geometry/edge-factor.ts:13
Factor by which the setbacks at both ends of an edge are reduced so that they fit the edge.
Formula: f = 1 if S ≤ L, otherwise f = L / S. The comparison comes first, so a zero-length edge without demand gives 1, never a division by zero.
Parameters
length
number
length L of the edge, >= 0
demand
number
sum S of the setbacks requested at its two ends, >= 0
Returns
number
factor in [0, 1]: 0 when a zero-length edge carries a demand
Kind
geometry
See
DERIV-local-radius-clamp