multiplyIfPositive MethodStatic
if a > 0, return (extrapolationFactor * a); otherwise return defaultValue
multiplyIfPositive(q: number, factor: number, defaultValue: number = 0.0): number
Parameter | Type | Description |
---|---|---|
q | number | |
factor | number | multiplier for positive q values. |
defaultValue | number |
Returns - number
Defined in
- geometry3d/Range.ts Line 79
Last Updated: 20 June, 2023