intersects Area - Java java.lang

Java examples for java.lang:Math Geometry

Description

intersects Area

Demo Code


//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();
    }
}

Related Tutorials