|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a portion of the globe in 3 dimensions
| Field Summary | |
static double |
EVEREST
Height of Mt Everest in metres (Highest point on earth, climbed by New Zealand Sir Edmund Hillary in 1953) |
static double |
METRESPERDEGREEOFLATITUDE
|
static double |
METRESPERDEGREEOFLONGATEQUATOR
|
static double |
METRESPERPIXEL
|
| Method Summary | |
boolean |
contains(Location2D point)
Indicate whether a point is within the area |
GeographicalBox |
getBoundingBox()
Return a box which bounds the area. |
boolean |
isUnknown()
Indicates whether the bounds of this area are unknown. |
boolean |
overlapsWith(GeographicalArea area)
Indicate whether the supplied area overlaps with this area. |
| Field Detail |
public static final double EVEREST
public static final double METRESPERPIXEL
public static final double METRESPERDEGREEOFLATITUDE
public static final double METRESPERDEGREEOFLONGATEQUATOR
| Method Detail |
public boolean contains(Location2D point)
point - the point of interest
public GeographicalBox getBoundingBox()
overlapsWith
for arbitrary shapes.
If isUnknown() returns true for the area, then returns GeographicalBox.UNKNOWN
public boolean overlapsWith(GeographicalArea area)
getBoundingBox for a way of approximately
implementing this for arbitrary shapes. Suggestions for improvement welcome.
If isUnknown() returns true for either or both areas, the result is false;
area - the area of interestpublic boolean isUnknown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||