@Test public void testIntersects() { Ellipse ellipse1 = new Ellipse(null, 2.0f, 0.0f, 5.0, 2.5f, 0.0f); Ellipse ellipse2 = new Ellipse(null, 10.0f, 0.0f, 4.0, 2.5f, 0.0f); assertTrue(ellipse1.intersects(ellipse2)); assertTrue(ellipse2.intersects(ellipse1)); }
@Override public boolean intersects(Area other) { throw new UnsupportedOperationException(); }
Ellipse extends Area { @Override public boolean intersects(Area other) { throw new UnsupportedOperationException(); } }
Ellipse extends Area { @Override public boolean intersects(Area other) { throw new UnsupportedOperationException(); } Ellipse(Position geodeticReference, double alpha, double beta, double thetaDeg);  Ellipse(Position geodeticReference, double dx, double dy, double alpha, double beta, double thetaDeg); }
Ellipse extends Area { @Override public boolean intersects(Area other) { throw new UnsupportedOperationException(); } Ellipse(Position geodeticReference, double alpha, double beta, double thetaDeg);  Ellipse(Position geodeticReference, double dx, double dy, double alpha, double beta, double thetaDeg); @Override boolean contains(Position position); double getAlpha(); double getBeta(); @Override Rectangle getBoundingBox(); Position getGeodeticReference(); double getMajorAxisGeodeticHeading(); @Override Position getRandomPosition(Random random); double getThetaDeg(); double getX(); double getY(); Ellipse immutable(); @Override boolean intersects(Area other); boolean intersects(Ellipse otherEllipse); List<Position> samplePerimeter(int n); @Override String toString(); }
Ellipse extends Area { @Override public boolean intersects(Area other) { throw new UnsupportedOperationException(); } Ellipse(Position geodeticReference, double alpha, double beta, double thetaDeg);  Ellipse(Position geodeticReference, double dx, double dy, double alpha, double beta, double thetaDeg); @Override boolean contains(Position position); double getAlpha(); double getBeta(); @Override Rectangle getBoundingBox(); Position getGeodeticReference(); double getMajorAxisGeodeticHeading(); @Override Position getRandomPosition(Random random); double getThetaDeg(); double getX(); double getY(); Ellipse immutable(); @Override boolean intersects(Area other); boolean intersects(Ellipse otherEllipse); List<Position> samplePerimeter(int n); @Override String toString(); static final MessageSerializer<Ellipse> SERIALIZER; }