Package org.gavaghan.geodesy
Class GeodeticMeasurement
java.lang.Object
org.gavaghan.geodesy.GeodeticCurve
org.gavaghan.geodesy.GeodeticMeasurement
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionGeodeticMeasurement(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
Modifier and TypeMethodDescriptiondoubleGet the elevation change.doubleGet the point-to-point distance.toString()Get the GeodeticMeasurement as a string.Methods inherited from class org.gavaghan.geodesy.GeodeticCurve
getAzimuth, getEllipsoidalDistance, getReverseAzimuth
-
Constructor Details
-
GeodeticMeasurement
public GeodeticMeasurement(double ellipsoidalDistance, double azimuth, double reverseAzimuth, double elevationChange) Creates a new instance of GeodeticMeasurement.- Parameters:
ellipsoidalDistance- ellipsoidal distance in metersazimuth- azimuth in degreesreverseAzimuth- reverse azimuth in degreeselevationChange- the change in elevation, in meters, going from the starting point to the ending point
-
GeodeticMeasurement
Creates a new instance of GeodeticMeasurement.- Parameters:
averageCurve- average geodetic curveelevationChange- the change in elevation, in meters, going from the starting point to the ending point
-
-
Method Details
-
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
Get the GeodeticMeasurement as a string.- Overrides:
toStringin classGeodeticCurve- Returns:
-