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 double
area()
Deprecated.Return the areaPoint2D
centroid()
Deprecated.Return the centroidboolean
contains(Point2D pt)
Deprecated.Does the shape contain the given pointint
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 rectanglevoid
translate(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:Geometry2D
Returns information about how this shape intersects the given rectangle- Specified by:
intersect
in interfaceGeometry2D
-
area
public double area()
Deprecated.Description copied from interface:Geometry2D
Return the area- Specified by:
area
in interfaceGeometry2D
-
centroid
public Point2D centroid()
Deprecated.Description copied from interface:Geometry2D
Return the centroid- Specified by:
centroid
in interfaceGeometry2D
-
contains
public boolean contains(Point2D pt)
Deprecated.Description copied from interface:Geometry2D
Does the shape contain the given point- Specified by:
contains
in interfaceGeometry2D
-
translate
public void translate(Vector2D v)
Deprecated.Description copied from interface:Geometry2D
Translate according to the vector- Specified by:
translate
in interfaceGeometry2D
-
-