Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PVector lacks a PVector.add(PVector, float, float) method #3593
With a "3D PVector" you can do:
However, with a "2D PVector" you cannot do:
I know, there's no such thing as a 2D PVector. PVector always has a z component and you could always do .add(x, y, 0). However, if you allow to write new PVector(x,y) omitting the z, giving the illusion that one is handling a 2D point without forcing to include a zero z component, it's inconsistent to not allow the same syntax and the same "illusion" when adding.
Yes, I am in favor. I'm hesitant to add new functionality, but I think this is more of a case of cleaning up old functionality. No new documentation is really required. I also like the "illusion" of