need to draw a line from 2 points that were drawn with a different translate and rotate matrix

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

Sign In or Register to comment.