p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
The reference docs for p5.Vector.jssub() method here seem to have copied the exact text from the add() method reference here.
If a value isn't provided for a component, it won't change. For
example, v.sub(4, 5)adds 4 tov.x, 5 tov.y, and 0 tov.z.
Calling sub() with no arguments, as in v.sub(), has no effect.
I think this should instead read:
If a value isn't provided for a component, it won't change. For
example, v.sub(4, 5)subtracts 4 fromv.x, 5 fromv.y, and 0 fromv.z.
Calling sub() with no arguments, as in v.sub(), has no effect.
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!
Most appropriate sub-area of p5.js?
p5.js version
v1.9.3
Web browser and version
No response
Operating system
No response
Steps to reproduce this
The reference docs for
p5.Vector.js
sub()
method here seem to have copied the exact text from theadd()
method reference here.I think this should instead read: