Java examples for java.lang:Math Geometry
intersects Area
//package com.java2s; import java.awt.geom.*; public class Main { public static boolean intersects(Area a, Area b) { Area a2 = (Area) a.clone(); a2.intersect(b);/* ww w .j a v a 2s. c o m*/ return !a2.isEmpty(); } }