Function: subVec()
subVec(
a,b):Vector3Tuple
Defined in: utils/vectors.ts:64
Subtract one vector from another (a - b).
Parameters
a
The vector to subtract from
b
The vector to subtract
Returns
Difference vector as [a_x - b_x, a_y - b_y, a_z - b_z]
Example
subVec([4, 3, 0], [1, 0, 0]) // [3, 3, 0]