Thanks all for replies. Probably approach with Shape.contains(Point2D) is better because it seems that intersects doesn't guaranty existance of intersection in general case:
The Shape.intersects() method allows a Shape implementation to conservatively return true when: - there is a high probability that the rectangular area and the Shape intersect, but - the calculations to accurately determine this intersection are prohibitively expensive. [Message sent by forum member 'kamre' (kamre)] http://forums.java.net/jive/thread.jspa?messageID=327304 =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".
