editor / alignmentFactor
Function: alignmentFactor()
alignmentFactor(
alignment):number
Defined in: geometry/alignment-factor.ts:15
Share of the room left on an axis that goes before the shape: 0 for min, ½ for mid, 1 for max (DERIV-regular-polygon-fit step 5; SVG's viewport transform, steps 11–14).
Parameters
alignment
"min" | "mid" | "max"
alignment on the axis
Returns
number
0, 0.5 or 1
Kind
geometry
See
DERIV-regular-polygon-fit