Home > @josh-brown/vector > ScalarOperations > add
Returns the sum of two scalars first
and second
.
Signature:
abstract add(first: S, second: S): S;
Parameter | Type | Description |
---|---|---|
first | S | |
second | S |
Returns:
S
The sum
Implementors should ensure that this operation is commutative and associative.