We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a point A that was drawn after a translate and rotate operation. And I have a point B that was drawn after a different translate and rotate operation. My question is, how can I draw a line from point A to point B? I understand that Processing 2.0 has coordinate functions such as modelX(), modelY(), screenX(), screenY(). But what about p5.js? How can I do the same thing in p5.js since those functions don't exist?
Answers
afaik you can store the points using screenX and screenY -- see reference
or modelX and modelY
thanks... That looks to be what I want. I'm actually using p5.js and thought that the functions would be the same but unfortunately those functions do not exist in p5.js
sorry, nothing like that in p5.js yet, but you could submit a feature request here: https://github.com/lmccart/p5.js/issues