safeDivideFraction MethodStatic
Return numerator
divided by denominator
.
safeDivideFraction(numerator: number, denominator: number, defaultResult: number): number
@returns return numerator/denominator
but if the ratio exceeds largeFractionResult,
return defaultResult
.
Parameter | Type | Description |
---|---|---|
numerator | number | the numerator |
denominator | number | the denominator |
defaultResult | number |
Returns - number
return numerator/denominator
but if the ratio exceeds largeFractionResult,
return defaultResult
.
Defined in
- Geometry.ts Line 1014
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.