signFactor Method
Return a scale factor to make these sums match the target orientation sign.
- 1.0 if
this.quantitySum
has the same sign astargetSign
. - -1.0 if
this.quantitySum
has the opposite sign fromtargetSign
signFactor(targetSign: number): number
Parameter | Type | Description |
---|---|---|
targetSign | number |
Returns - number
Defined in
Last Updated: 13 June, 2024