Java Area Intersect intersects(Area a, Area b)

Here you can find the source of intersects(Area a, Area b)

Description

intersects

License

Open Source License

Declaration

public static boolean intersects(Area a, Area b) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.geom.*;

public class Main {
    public static boolean intersects(Area a, Area b) {
        Area a2 = (Area) a.clone();
        a2.intersect(b);/*  w  ww  .  java  2s .  co m*/
        return !a2.isEmpty();
    }
}

Related

  1. intersection(Area a1, Area a2)
  2. intersects(Area lhs, Area rhs)