Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 645 Bytes

vector.scalaroperations.getadditiveidentity.md

File metadata and controls

23 lines (13 loc) · 645 Bytes

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

ScalarOperations.getAdditiveIdentity() method

Returns the unique scalar that, when added to another scalar, returns that scalar

Signature:

abstract getAdditiveIdentity(): S;

Returns:

S

The additive identity

Remarks

In other words, addScalars(x, getAdditiveIdentity()) === x is true for all scalars x