|
||||||||||
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.Rectangle
public class Rectangle
Rectangle shape.
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor Summary | |
---|---|
Rectangle()
|
|
Rectangle(double x1,
double y1,
double x2,
double y2)
|
|
Rectangle(Point2D ptMin,
Point2D ptMax)
|
Method Summary | |
---|---|
double |
area()
Return the area |
Point2D |
centroid()
Return the centroid |
boolean |
contains(Point2D p)
Does the shape contain the given point |
boolean |
equals(Object obj)
|
Point2D |
getMaxPoint()
|
Point2D |
getMinPoint()
|
int |
hashCode()
|
IntersectCase |
intersect(Rectangle r)
Returns information about how this shape intersects the given rectangle |
String |
toString()
|
void |
translate(Vector2D v)
Translate according to the vector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rectangle()
public Rectangle(Point2D ptMin, Point2D ptMax)
public Rectangle(double x1, double y1, double x2, double y2)
Method Detail |
---|
public String toString()
toString
in class Object
public double area()
Geometry2D
area
in interface Geometry2D
public Point2D centroid()
Geometry2D
centroid
in interface Geometry2D
public boolean contains(Point2D p)
Geometry2D
contains
in interface Geometry2D
public void translate(Vector2D v)
Geometry2D
translate
in interface Geometry2D
public IntersectCase intersect(Rectangle r)
Geometry2D
intersect
in interface Geometry2D
public Point2D getMaxPoint()
public Point2D getMinPoint()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |