|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnsidc.spheres.Sphere
nsidc.spheres.LatRange
LatRange class - provide services and information relating to a latitude range. At the moment it's all fairly basic, but at some point we may need to add functionality for circular latitudes.
This class assumes a spherical earth.
| Field Summary | |
double |
max
maximum latitude in range. |
double |
min
minimum latitude in range. |
| Fields inherited from class nsidc.spheres.Sphere |
radius, Re_km |
| Constructor Summary | |
LatRange(double givenMin,
double givenMax)
The constructors. |
|
LatRange(float givenMin,
float givenMax)
|
|
| Method Summary | |
boolean |
contains(double lat)
Determine if the given latgitude is within the range. |
boolean |
contains(float lat)
Determine if the given latitude is within the range. |
boolean |
meldRange(double otherMin,
double otherMax)
Combine two ranges if possible. |
boolean |
meldRange(LatRange other_range)
Combine two ranges if possible. |
boolean |
overlaps(LatRange other_range)
Determine if this range overlaps another. |
java.lang.String |
toString()
|
| Methods inherited from class nsidc.spheres.Sphere |
degrees, degrees, getRadius, normalize, normalize, radians, radians, scalarTripleProductTest, setRadius, systemLog, systemLog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double min
public double max
| Constructor Detail |
public LatRange(double givenMin,
double givenMax)
public LatRange(float givenMin,
float givenMax)
| Method Detail |
public boolean contains(float lat)
public boolean contains(double lat)
public boolean overlaps(LatRange other_range)
public boolean meldRange(LatRange other_range)
public boolean meldRange(double otherMin,
double otherMax)
\n
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||