Examples
Syntax
sub(value)
sub(v1, v2, [target])
Parameters
value
p5.Vector|Number[]: the vector to subtract
v1
p5.Vector: A p5.Vector to subtract from
v2
p5.Vector: A p5.Vector to subtract
target
p5.Vector: vector to receive the result.
Returns
p5.Vector: The resulting p5.Vector
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!