public class BoundingBox extends Object implements Parcelable, Serializable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BoundingBox> |
CREATOR |
(package private) static long |
serialVersionUID |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BoundingBox(double north,
double east,
double south,
double west) |
Modifier and Type | Method and Description |
---|---|
GeoPoint |
bringToBoundingBox(double aLatitude,
double aLongitude) |
BoundingBox |
clone() |
BoundingBox |
concat(BoundingBox bb2) |
boolean |
contains(double aLatitude,
double aLongitude) |
boolean |
contains(IGeoPoint pGeoPoint) |
int |
describeContents() |
static BoundingBox |
fromGeoPoints(List<? extends IGeoPoint> partialPolyLine) |
double |
getActualNorth() |
double |
getActualSouth() |
GeoPoint |
getCenter()
Deprecated.
|
double |
getCenterLatitude() |
double |
getCenterLongitude() |
static double |
getCenterLongitude(double pWest,
double pEast)
Compute the center of two longitudes
Taking into account the case when "west is on the right and east is on the left"
|
GeoPoint |
getCenterWithDateLine()
This version takes into consideration the date line
|
double |
getDiagonalLengthInMeters() |
GeoPoint |
getGeoPointOfRelativePositionWithExactGudermannInterpolation(float relX,
float relY) |
GeoPoint |
getGeoPointOfRelativePositionWithLinearInterpolation(float relX,
float relY) |
double |
getLatitudeSpan() |
int |
getLatitudeSpanE6()
Deprecated.
|
double |
getLatNorth() |
double |
getLatSouth() |
double |
getLonEast() |
double |
getLongitudeSpan() |
int |
getLongitudeSpanE6()
Deprecated.
|
double |
getLonWest() |
PointF |
getRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation(double aLatitude,
double aLongitude,
PointF reuse) |
PointF |
getRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation(double aLatitude,
double aLongitude,
PointF reuse) |
BoundingBox |
increaseByScale(float pBoundingboxPaddingRelativeScale) |
void |
set(double north,
double east,
double south,
double west) |
String |
toString() |
void |
writeToParcel(Parcel out,
int arg1) |
static final long serialVersionUID
public static final Parcelable.Creator<BoundingBox> CREATOR
public BoundingBox(double north, double east, double south, double west)
public void set(double north, double east, double south, double west)
public BoundingBox clone()
public BoundingBox concat(BoundingBox bb2)
@Deprecated public GeoPoint getCenter()
getCenterWithDateLine()
instead to take date line into considerationpublic GeoPoint getCenterWithDateLine()
public double getDiagonalLengthInMeters()
public double getLatNorth()
public double getLatSouth()
public double getCenterLatitude()
public double getCenterLongitude()
public static double getCenterLongitude(double pWest, double pEast)
public double getActualNorth()
public double getActualSouth()
public double getLonEast()
public double getLonWest()
public double getLatitudeSpan()
public double getLongitudeSpan()
public PointF getRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation(double aLatitude, double aLongitude, PointF reuse)
aLatitude
- aLongitude
- reuse
- public PointF getRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation(double aLatitude, double aLongitude, PointF reuse)
public GeoPoint getGeoPointOfRelativePositionWithLinearInterpolation(float relX, float relY)
public GeoPoint getGeoPointOfRelativePositionWithExactGudermannInterpolation(float relX, float relY)
public BoundingBox increaseByScale(float pBoundingboxPaddingRelativeScale)
public GeoPoint bringToBoundingBox(double aLatitude, double aLongitude)
public static BoundingBox fromGeoPoints(List<? extends IGeoPoint> partialPolyLine)
public boolean contains(IGeoPoint pGeoPoint)
public boolean contains(double aLatitude, double aLongitude)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int arg1)
writeToParcel
in interface Parcelable
@Deprecated public int getLatitudeSpanE6()
@Deprecated public int getLongitudeSpanE6()