multiplyIfPositive MethodStatic

If a > 0, return (extrapolationFactor * a); otherwise return defaultValue

multiplyIfPositive(q: number, factor: number, defaultValue: number0.0): number

Parameter Type Description
q number  
factor number multiplier for positive q values.
defaultValue number  

Returns - number

Defined in

Last Updated: 17 December, 2024