|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnsidc.spheres.Sphere
nsidc.spheres.Point
Point class - provides services and information relating to a point on a sphere.
In this package we do a lot of switching between spherical coordinates and cartesian coordinates, so it is convenient to define a point class that includs both coordinate systems.
This class assumes a spherical earth.
| Field Summary | |
double |
lat
Spherical coordinate of the point. |
double |
lon
Spherical coordinate of the point. |
double |
x
Cartesian coordinate of the point. |
double |
y
Cartesian coordinate of the point. |
double |
z
Cartesian coordinate of the point. |
| Fields inherited from class nsidc.spheres.Sphere |
radius, Re_km |
| Constructor Summary | |
Point(double given_lat,
double given_lon)
Known spherical coordinates. |
|
Point(double given_x,
double given_y,
double given_z)
Known cartesian coordinates |
|
| Method Summary | |
void |
reset(double given_lat,
double given_lon)
Reset the point from known spherical coordinates. |
void |
reset(double given_x,
double given_y,
double given_z)
Reset the point from known cartesian coordinates. |
void |
setRadius(double given_radius)
Use a different radius. |
java.lang.String |
toString()
|
| Methods inherited from class nsidc.spheres.Sphere |
degrees, degrees, getRadius, normalize, normalize, radians, radians, scalarTripleProductTest, systemLog, systemLog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double lat
public double lon
public double x
public double y
public double z
| Constructor Detail |
public Point(double given_lat,
double given_lon)
public Point(double given_x,
double given_y,
double given_z)
This method does not check that the point is actually on the sphere. The point is, after all, on some sphere.
| Method Detail |
public void setRadius(double given_radius)
setRadius in class Sphere
public void reset(double given_lat,
double given_lon)
public void reset(double given_x,
double given_y,
double given_z)
This method does not check that the point is actually on the sphere. The point is, after all, on some sphere.
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||