Skip to content

editor / subtract

Function: subtract() ​

subtract(a, b): Vector

Defined in: math/subtract.ts:15

Vector from b to a, component-wise.

Formula: a − b = (aₓ − bₓ, a_y − b_y).

Parameters ​

a ​

Point

end point

b ​

Point

start point

Returns ​

Vector

the displacement from b to a

Kind ​

math

See ​

REF-MATHWORLD-VECTOR-DIFFERENCE