Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 763 Bytes

vector.scalaroperations.getadditiveinverse.md

File metadata and controls

30 lines (17 loc) · 763 Bytes

Home > @josh-brown/vector > ScalarOperations > getAdditiveInverse

ScalarOperations.getAdditiveInverse() method

Returns the unique value that, when added to x, returns the additive identity

Signature:

abstract getAdditiveInverse(x: S): S;

Parameters

Parameter Type Description
x S

Returns:

S

The additive inverse

Remarks

In other words, addScalars(scalar, getAdditiveInverse(scalar)) === getAdditiveIdentity() is true for x