|
||||||||||
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.LLRect
public class LLRect
Lat-long rect. Instances are mutable.
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor Summary | |
---|---|
LLRect(LatLng ll,
LatLng ur)
|
|
LLRect(LLRect other)
|
Method Summary | |
---|---|
double |
area()
Return the area in units of lat-lng squared. |
static LLRect |
createBox(LatLng center,
double widthMi,
double heightMi)
Approximates a box centered at the given point with the given width and height in miles. |
boolean |
equals(Object obj)
|
LatLng |
getLowerLeft()
|
LatLng |
getMidpoint()
|
LatLng |
getUpperRight()
|
int |
hashCode()
|
Rectangle |
toRectangle()
Returns a rectangle shape for the bounding box |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LLRect(LatLng ll, LatLng ur)
public LLRect(LLRect other)
Method Detail |
---|
public double area()
public LatLng getLowerLeft()
public LatLng getUpperRight()
public String toString()
toString
in class Object
public LatLng getMidpoint()
public static LLRect createBox(LatLng center, double widthMi, double heightMi)
center
- widthMi
- heightMi
- public Rectangle toRectangle()
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 |