Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Coordinates

 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

In my graphics application , i rotated my polygon by angle -45 .

Now when i notice the mouse event over polygon , the method contains

always return false because of rotation , the x and y of polygon has been changed.

Plz suggest me how to apply polygon.contains method which will return true when i click over polygon

Thanks
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic