correctFraction MethodStatic
Correct fraction to be within [0,1].
- If fraction is in [0,1] return it unchanged.
- If fraction is less than 0 use
extendParamto decide whether to return it unchanged, or to return 0. - If fraction is greater than 1 use
extendParamto decide whether to return it unchanged, or to return 1.
correctFraction(extendParam: VariantCurveExtendParameter, fraction: number): number
| Parameter | Type | Description |
|---|---|---|
| extendParam | VariantCurveExtendParameter | |
| fraction | number |
Returns - number
Defined in
- curve/CurveExtendMode.ts Line 54
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.