java - Method for finding if Path2D intersects or contains another Path2D -


java path2d has methods determine if rectangle intersects shape or not, , if rectangle contained in shape or not. there easy way similar things path2d?

use area instead of path2d. can determine if 2 areas intersect this:

!a1.intersect(a2).isempty() 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -