Do screenX co-ordinates remain constant after rotate?

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). sq1

A rotate is then performed on it sq3

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!

Sign In or Register to comment.