|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.spatial.geometry.shape.Ellipse
@Deprecated public class Ellipse
Ellipse shape. From C++ gl.
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor Summary | |
---|---|
Ellipse()
Deprecated. |
|
Ellipse(Point2D p1,
Point2D p2,
double angle)
Deprecated. Constructor given bounding rectangle and a rotation. |
Method Summary | |
---|---|
double |
area()
Deprecated. Return the area |
Point2D |
centroid()
Deprecated. Return the centroid |
boolean |
contains(Point2D pt)
Deprecated. Does the shape contain the given point |
int |
intersect(LineSegment seg,
Point2D pt0,
Point2D pt1)
Deprecated. Determines if a line segment intersects the ellipse and if so finds the point(s) of intersection. |
IntersectCase |
intersect(Rectangle r)
Deprecated. Returns information about how this shape intersects the given rectangle |
void |
translate(Vector2D v)
Deprecated. Translate according to the vector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ellipse()
public Ellipse(Point2D p1, Point2D p2, double angle)
Method Detail |
---|
public int intersect(LineSegment seg, Point2D pt0, Point2D pt1)
seg
- Line segment to test for intersectionpt0
- OUT - intersection point (if it exists)pt1
- OUT - second intersection point (if it exists)
public IntersectCase intersect(Rectangle r)
Geometry2D
intersect
in interface Geometry2D
public double area()
Geometry2D
area
in interface Geometry2D
public Point2D centroid()
Geometry2D
centroid
in interface Geometry2D
public boolean contains(Point2D pt)
Geometry2D
contains
in interface Geometry2D
public void translate(Vector2D v)
Geometry2D
translate
in interface Geometry2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |