Class Ellipse
- java.lang.Object
-
- org.apache.lucene.spatial.geometry.shape.Ellipse
-
- All Implemented Interfaces:
Geometry2D
@Deprecated public class Ellipse extends Object implements Geometry2D
Deprecated.Ellipse shape. From C++ gl.NOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublearea()Deprecated.Return the areaPoint2Dcentroid()Deprecated.Return the centroidbooleancontains(Point2D pt)Deprecated.Does the shape contain the given pointintintersect(LineSegment seg, Point2D pt0, Point2D pt1)Deprecated.Determines if a line segment intersects the ellipse and if so finds the point(s) of intersection.IntersectCaseintersect(Rectangle r)Deprecated.Returns information about how this shape intersects the given rectanglevoidtranslate(Vector2D v)Deprecated.Translate according to the vector
-
-
-
Method Detail
-
intersect
public 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.- Parameters:
seg- Line segment to test for intersectionpt0- OUT - intersection point (if it exists)pt1- OUT - second intersection point (if it exists)- Returns:
- Returns the number of intersection points (0, 1, or 2).
-
intersect
public IntersectCase intersect(Rectangle r)
Deprecated.Description copied from interface:Geometry2DReturns information about how this shape intersects the given rectangle- Specified by:
intersectin interfaceGeometry2D
-
area
public double area()
Deprecated.Description copied from interface:Geometry2DReturn the area- Specified by:
areain interfaceGeometry2D
-
centroid
public Point2D centroid()
Deprecated.Description copied from interface:Geometry2DReturn the centroid- Specified by:
centroidin interfaceGeometry2D
-
contains
public boolean contains(Point2D pt)
Deprecated.Description copied from interface:Geometry2DDoes the shape contain the given point- Specified by:
containsin interfaceGeometry2D
-
translate
public void translate(Vector2D v)
Deprecated.Description copied from interface:Geometry2DTranslate according to the vector- Specified by:
translatein interfaceGeometry2D
-
-