We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all, Was just wondering what the equation behind the PVector.rotate(float) was. Thank you in advance. Here is link to source https://processing.org/reference/PVector_rotate_.html
Answers
that says it's 2d only so it'll apply the standard 2d rotation matrix to the 2d vector
https://en.wikipedia.org/wiki/Rotation_matrix
Thank you, I'll see if I can put it in my code.
We can read rotate()'s implementation at this link below: B-)
https://GitHub.com/processing/processing/blob/master/core/src/processing/core/PVector.java#L917
Anyways, I've adapted it from Java to JS. Take a look: :ar!
Thank you also, that is something i think i can work with