|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnsidc.spheres.Sphere
nsidc.spheres.LonRange
LonRange class - provide services and information relating to a longitude range. Compensates for the dateline and whatnot.
This class assumes a spherical earth.
| Field Summary | |
double |
max
maximum longitude in range. |
double |
min
minimum longitude in range. |
| Fields inherited from class nsidc.spheres.Sphere |
radius, Re_km |
| Constructor Summary | |
LonRange(double givenMin,
double givenMax)
Assumes West to East orientation. |
|
LonRange(float givenMin,
float givenMax)
Assumes West to East orientation. |
|
| Method Summary | |
boolean |
contains(double lon)
Determine if the given longitude is within the range. |
boolean |
contains(float lon)
Determine if the given longitude is within the range. |
boolean |
meldRange(double otherMin,
double otherMax)
Combine two ranges if possible. |
boolean |
meldRange(LonRange other_range)
Combine two ranges if possible. |
boolean |
overlaps(LonRange 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 LonRange(double givenMin,
double givenMax)
public LonRange(float givenMin,
float givenMax)
| Method Detail |
public boolean contains(float lon)
public boolean contains(double lon)
public boolean overlaps(LonRange other_range)
public boolean meldRange(LonRange other_range)
public boolean meldRange(double otherMin,
double otherMax)
\n
If the two ranges do not overlap no changes are made and
false is returned.
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||