public class LLRect
extends java.lang.Object
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor and Description |
---|
LLRect(LatLng ll,
LatLng ur) |
LLRect(LLRect other) |
Modifier and Type | Method and Description |
---|---|
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(java.lang.Object obj) |
LatLng |
getLowerLeft() |
LatLng |
getMidpoint() |
LatLng |
getUpperRight() |
int |
hashCode() |
Rectangle |
toRectangle()
Returns a rectangle shape for the bounding box
|
java.lang.String |
toString() |
public double area()
public LatLng getLowerLeft()
public LatLng getUpperRight()
public java.lang.String toString()
toString
in class java.lang.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 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.