-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable
public class BoundingBox implements Parcelable, Serializable
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<BoundingBox>CREATOR
-
Constructor Summary
Constructors Constructor Description BoundingBox(double north, double east, double south, double west)BoundingBox()
-
Method Summary
Modifier and Type Method Description voidset(double north, double east, double south, double west)BoundingBoxclone()booleanequals(Object o)inthashCode()BoundingBoxconcat(BoundingBox bb2)GeoPointgetCenter()Use getCenterWithDateLine instead to take date line into consideration GeoPointgetCenterWithDateLine()This version takes into consideration the date line doublegetDiagonalLengthInMeters()doublegetLatNorth()doublegetLatSouth()doublegetCenterLatitude()doublegetCenterLongitude()static doublegetCenterLongitude(double pWest, double pEast)Compute the center of two longitudesTaking into account the case when "west is on the right and east is on the left" doublegetActualNorth()doublegetActualSouth()doublegetLonEast()doublegetLonWest()doublegetLatitudeSpan()Determines the height of the bounding box. doublegetLongitudeSpan()voidsetLatNorth(double mLatNorth)voidsetLatSouth(double mLatSouth)voidsetLonEast(double mLonEast)voidsetLonWest(double mLonWest)doublegetLongitudeSpanWithDateLine()Determines the width of the bounding box. PointFgetRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation(double aLatitude, double aLongitude, PointF reuse)PointFgetRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation(double aLatitude, double aLongitude, PointF reuse)GeoPointgetGeoPointOfRelativePositionWithLinearInterpolation(float relX, float relY)GeoPointgetGeoPointOfRelativePositionWithExactGudermannInterpolation(float relX, float relY)BoundingBoxincreaseByScale(float pBoundingboxPaddingRelativeScale)Scale this bounding box by a given factor. StringtoString()GeoPointbringToBoundingBox(double aLatitude, double aLongitude)static BoundingBoxfromGeoPoints(List<out IGeoPoint> partialPolyLine)booleancontains(IGeoPoint pGeoPoint)booleancontains(double aLatitude, double aLongitude)intdescribeContents()voidwriteToParcel(Parcel out, int arg1)intgetLatitudeSpanE6()intgetLongitudeSpanE6()booleanoverlaps(BoundingBox pBoundingBox, double pZoom)returns true if there is any overlap from this to the input bounding boxedges includes of a matchsensitive to vertical and horiztonal map wrapping static BoundingBoxfromGeoPointsSafe(List<GeoPoint> points)-
-
Method Detail
-
set
void set(double north, double east, double south, double west)
-
clone
BoundingBox clone()
-
hashCode
int hashCode()
-
concat
BoundingBox concat(BoundingBox bb2)
-
getCenter
@Deprecated() GeoPoint getCenter()
Use getCenterWithDateLine instead to take date line into consideration
-
getCenterWithDateLine
GeoPoint getCenterWithDateLine()
This version takes into consideration the date line
-
getDiagonalLengthInMeters
double getDiagonalLengthInMeters()
-
getLatNorth
double getLatNorth()
-
getLatSouth
double getLatSouth()
-
getCenterLatitude
double getCenterLatitude()
-
getCenterLongitude
double getCenterLongitude()
-
getCenterLongitude
static double getCenterLongitude(double pWest, double pEast)
Compute the center of two longitudesTaking into account the case when "west is on the right and east is on the left"
-
getActualNorth
double getActualNorth()
-
getActualSouth
double getActualSouth()
-
getLonEast
double getLonEast()
-
getLonWest
double getLonWest()
-
getLatitudeSpan
double getLatitudeSpan()
Determines the height of the bounding box.
-
getLongitudeSpan
@Deprecated() double getLongitudeSpan()
-
setLatNorth
void setLatNorth(double mLatNorth)
-
setLatSouth
void setLatSouth(double mLatSouth)
-
setLonEast
void setLonEast(double mLonEast)
-
setLonWest
void setLonWest(double mLonWest)
-
getLongitudeSpanWithDateLine
double getLongitudeSpanWithDateLine()
Determines the width of the bounding box.
-
getRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation
PointF getRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation(double aLatitude, double aLongitude, PointF reuse)
-
getRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation
PointF getRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation(double aLatitude, double aLongitude, PointF reuse)
-
getGeoPointOfRelativePositionWithLinearInterpolation
GeoPoint getGeoPointOfRelativePositionWithLinearInterpolation(float relX, float relY)
-
getGeoPointOfRelativePositionWithExactGudermannInterpolation
GeoPoint getGeoPointOfRelativePositionWithExactGudermannInterpolation(float relX, float relY)
-
increaseByScale
BoundingBox increaseByScale(float pBoundingboxPaddingRelativeScale)
Scale this bounding box by a given factor.
- Parameters:
pBoundingboxPaddingRelativeScale- scale factor
-
bringToBoundingBox
GeoPoint bringToBoundingBox(double aLatitude, double aLongitude)
-
fromGeoPoints
static BoundingBox fromGeoPoints(List<out IGeoPoint> partialPolyLine)
-
contains
boolean contains(double aLatitude, double aLongitude)
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int arg1)
-
getLatitudeSpanE6
@Deprecated() int getLatitudeSpanE6()
-
getLongitudeSpanE6
@Deprecated() int getLongitudeSpanE6()
-
overlaps
boolean overlaps(BoundingBox pBoundingBox, double pZoom)
returns true if there is any overlap from this to the input bounding boxedges includes of a matchsensitive to vertical and horiztonal map wrapping
-
fromGeoPointsSafe
static BoundingBox fromGeoPointsSafe(List<GeoPoint> points)
-
-
-
-