nsidc.spheres
Class Point

java.lang.Object
  extended bynsidc.spheres.Sphere
      extended bynsidc.spheres.Point

public class Point
extends Sphere

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

lat

public double lat
Spherical coordinate of the point.


lon

public double lon
Spherical coordinate of the point.


x

public double x
Cartesian coordinate of the point.


y

public double y
Cartesian coordinate of the point.


z

public double z
Cartesian coordinate of the point.

Constructor Detail

Point

public Point(double given_lat,
             double given_lon)
Known spherical coordinates.


Point

public Point(double given_x,
             double given_y,
             double given_z)
Known cartesian coordinates

This method does not check that the point is actually on the sphere. The point is, after all, on some sphere.

Method Detail

setRadius

public void setRadius(double given_radius)
Use a different radius.

Overrides:
setRadius in class Sphere

reset

public void reset(double given_lat,
                  double given_lon)
Reset the point from known spherical coordinates.


reset

public void reset(double given_x,
                  double given_y,
                  double given_z)
Reset the point from known cartesian coordinates.

This method does not check that the point is actually on the sphere. The point is, after all, on some sphere.


toString

public java.lang.String toString()