org.gavaghan.geodesy
Class GeodeticMeasurement

java.lang.Object
  extended by org.gavaghan.geodesy.GeodeticCurve
      extended by org.gavaghan.geodesy.GeodeticMeasurement
All Implemented Interfaces:
java.io.Serializable

public class GeodeticMeasurement
extends GeodeticCurve

This is the outcome of a three dimensional geodetic calculation. It represents the path a between two GlobalPositions for a specified reference ellipsoid.

Author:
Mike Gavaghan
See Also:
Serialized Form

Constructor Summary
GeodeticMeasurement(double ellipsoidalDistance, double azimuth, double reverseAzimuth, double elevationChange)
          Creates a new instance of GeodeticMeasurement.
GeodeticMeasurement(GeodeticCurve averageCurve, double elevationChange)
          Creates a new instance of GeodeticMeasurement.
 
Method Summary
 double getElevationChange()
          Get the elevation change.
 double getPointToPointDistance()
          Get the point-to-point distance.
 java.lang.String toString()
          Get the GeodeticMeasurement as a string.
 
Methods inherited from class org.gavaghan.geodesy.GeodeticCurve
getAzimuth, getEllipsoidalDistance, getReverseAzimuth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeodeticMeasurement

public GeodeticMeasurement(double ellipsoidalDistance,
                           double azimuth,
                           double reverseAzimuth,
                           double elevationChange)
Creates a new instance of GeodeticMeasurement.

Parameters:
ellipsoidalDistance - ellipsoidal distance in meters
azimuth - azimuth in degrees
reverseAzimuth - reverse azimuth in degrees
elevationChange - the change in elevation, in meters, going from the starting point to the ending point

GeodeticMeasurement

public GeodeticMeasurement(GeodeticCurve averageCurve,
                           double elevationChange)
Creates a new instance of GeodeticMeasurement.

Parameters:
averageCurve - average geodetic curve
elevationChange - the change in elevation, in meters, going from the starting point to the ending point
Method Detail

getElevationChange

public double getElevationChange()
Get the elevation change.

Returns:
elevation change, in meters, going from the starting to the ending point

getPointToPointDistance

public double getPointToPointDistance()
Get the point-to-point distance.

Returns:
the distance travelled, in meters, going from one point to the next

toString

public java.lang.String toString()
Get the GeodeticMeasurement as a string.

Overrides:
toString in class GeodeticCurve