That's true - the intersects(Rectangle) method is specified to be more
useful for situations like culling a tree of shapes against a clip
bounds. The contains(Point) method is specified more for things like
hit detection...
...jim
[email protected] wrote:
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".
===========================================================================
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".