We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I was wondering, if I were to rotate a PShape then use screenX to check a point on the Pshape, should the same co-ordinate be returned - ie. should the co-ordinates be relative to the shape before and after the transformation?
For example, the shape below is drawn and the co-orinates of the red pixel noted (say, x=10 y=10).
A rotate is then performed on it
Then using screenX, should the red pixel still be at the same co-ordinates (x=10, y=10)?
I hope this makes some sense!
Thanks!
Answers
Why don't you just write a small example program that tests this out for you? I'd be curious to see your results!