signFactor Method

Return a scale factor to make these sums match the target orientation sign.

  • 1.0 if this.quantitySum has the same sign as targetSign.
  • -1.0 if this.quantitySum has the opposite sign from targetSign

signFactor(targetSign: number): number

Parameter Type Description
targetSign number  

Returns - number

Defined in

Last Updated: 13 June, 2024