Class LLRect
- java.lang.Object
-
- org.apache.lucene.spatial.geometry.shape.LLRect
-
@Deprecated public class LLRect extends Object
Deprecated.Lat-long rect. Instances are mutable.NOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublearea()Deprecated.Return the area in units of lat-lng squared.static LLRectcreateBox(LatLng center, double widthMi, double heightMi)Deprecated.Approximates a box centered at the given point with the given width and height in miles.booleanequals(Object obj)Deprecated.LatLnggetLowerLeft()Deprecated.LatLnggetMidpoint()Deprecated.LatLnggetUpperRight()Deprecated.inthashCode()Deprecated.RectangletoRectangle()Deprecated.Returns a rectangle shape for the bounding boxStringtoString()Deprecated.
-
-
-
Method Detail
-
area
public double area()
Deprecated.Return the area in units of lat-lng squared. This is a contrived unit that only has value when comparing to something else.
-
getLowerLeft
public LatLng getLowerLeft()
Deprecated.
-
getUpperRight
public LatLng getUpperRight()
Deprecated.
-
getMidpoint
public LatLng getMidpoint()
Deprecated.
-
createBox
public static LLRect createBox(LatLng center, double widthMi, double heightMi)
Deprecated.Approximates a box centered at the given point with the given width and height in miles.- Parameters:
center-widthMi-heightMi-
-
toRectangle
public Rectangle toRectangle()
Deprecated.Returns a rectangle shape for the bounding box
-
-