List of usage examples for java.awt Shape intersects
public boolean intersects(double x, double y, double w, double h);
From source file:Main.java
public static void main(String[] args) throws Exception { Shape s = new Rectangle2D.Double(0, 0, 72, 72); System.out.println(s.intersects(10, 10, 20, 20)); }