Class Rectangle
- java.lang.Object
-
- org.apache.lucene.spatial.geometry.shape.Rectangle
-
- All Implemented Interfaces:
Geometry2D
@Deprecated public class Rectangle extends Object implements Geometry2D
Deprecated.Rectangle shape.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 p)
Deprecated.Does the shape contain the given pointboolean
equals(Object obj)
Deprecated.Point2D
getMaxPoint()
Deprecated.Point2D
getMinPoint()
Deprecated.int
hashCode()
Deprecated.IntersectCase
intersect(Rectangle r)
Deprecated.Returns information about how this shape intersects the given rectangleString
toString()
Deprecated.void
translate(Vector2D v)
Deprecated.Translate according to the vector
-
-
-
Method Detail
-
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 p)
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
-
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
-
getMaxPoint
public Point2D getMaxPoint()
Deprecated.
-
getMinPoint
public Point2D getMinPoint()
Deprecated.
-
-