Java Ellipse2D.intersects(double x, double y, double w, double h)

Syntax

Ellipse2D.intersects(double x, double y, double w, double h) has the following syntax.

public boolean intersects(double x,   double y,   double w,   double h)

Example

In the following code shows how to use Ellipse2D.intersects(double x, double y, double w, double h) method.


// w  ww .  j a  v a 2s  .c o  m
import java.awt.geom.AffineTransform;
import java.awt.geom.Ellipse2D;

public class Main {

  public static void main(String args[]) {
    Ellipse2D.Double e = new Ellipse2D.Double(1.0,2.0,2.0,2.0);
    
    System.out.println(e.intersects(2.0,2.0,2.0,2.0));
  }
}




















Home »
  Java Tutorial »
    java.awt.geom »




AffineTransform
Arc2D
Area
CubicCurve2D
Ellipse2D
GeneralPath