Home > @josh-brown/vector > ScalarOperations > getAdditiveIdentity
Returns the unique scalar that, when added to another scalar, returns that scalar
Signature:
abstract getAdditiveIdentity(): S;
Returns:
S
The additive identity
In other words, addScalars(x, getAdditiveIdentity()) === x
is true for all scalars x