• Post Reply Bookmark Topic Watch Topic
  • New Topic

util for detecting given point is within given region/points(circle, rectangle...)  RSS feed

 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a util for detecting given point is within given region/points(circle, rectangle...)?
 
Campbell Ritchie
Marshal
Posts: 56527
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look in the API index for C and use ctrl-f contains( you will find several contains() methods. One of those might satisfy your requirements.
 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are so smart
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!