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 doublearea()Deprecated.Return the areaPoint2Dcentroid()Deprecated.Return the centroidbooleancontains(Point2D p)Deprecated.Does the shape contain the given pointbooleanequals(Object obj)Deprecated.Point2DgetMaxPoint()Deprecated.Point2DgetMinPoint()Deprecated.inthashCode()Deprecated.IntersectCaseintersect(Rectangle r)Deprecated.Returns information about how this shape intersects the given rectangleStringtoString()Deprecated.voidtranslate(Vector2D v)Deprecated.Translate according to the vector
-
-
-
Method Detail
-
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 p)
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
-
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
-
getMaxPoint
public Point2D getMaxPoint()
Deprecated.
-
getMinPoint
public Point2D getMinPoint()
Deprecated.
-
-