public class EllipsoidGeodesic extends EllipsoidSurfaceCurve
A minimum length path conforming to the surface of an ellipsoid and connecting two planetodetic surface points.
This class utilizes the direct and indirect formulations for defining geodesics on an ellipsoid as discussed in "Geodesics on an ellipsoid of revolution.", C. F. Karney, 7 February 2011. The algorithms have been adapted from GeographicLib version 1.44 to optimize performance for the .NET and Java frameworks.
Constructor and Description 

EllipsoidGeodesic(Ellipsoid ellipsoid,
Cartographic initial,
Cartographic _final)
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.

EllipsoidGeodesic(Ellipsoid ellipsoid,
Cartographic initial,
double heading,
double distance)
Initializes a geodesic on the ellipsoid starting at the provided point and which
has the indicated heading at that point and ends at a point located at the provided
distance from the starting point.

Modifier and Type  Method and Description 

CartographicExtent 
computeCartographicExtent()
Computes the cartographic bounding box which contains the surface curve.

Ellipsoid 
getEllipsoid()
Gets the ellipsoid on which the geodesic lies.

double 
getFinalHeading()
Gets the heading at the final point.

Cartographic 
getFinalPoint()
Gets the final planetodetic point on the path.

double 
getInitialHeading()
Gets the heading at the initial point.

Cartographic 
getInitialPoint()
Gets the initial planetodetic point on the path.

double 
getSurfaceDistance()
Gets the total distance along the geodesic to the location of the final point.

double 
heading(Cartographic location)
Provides the heading at a location on the geodesic.

Motion1<Double> 
headingMotion(Cartographic location,
double groundSpeed)
Provides the heading and rate of change of heading at a location on the geodesic.

Cartographic 
interpolateUsingFraction(double fraction)
Provides the location of a point at the indicated portion along the geodesic.

Cartographic 
interpolateUsingSurfaceDistance(double surfaceDistance)
Provides the location of a point at the indicated distance along the geodesic.

Cartesian 
surfaceMotion(double distance)
Converts the motion given in terms of motion on the geodesic curve to motion of the surface point.

Motion1<Cartesian> 
surfaceMotion(double distance,
double groundSpeed,
double groundAcceleration)
Converts the motion given in terms of motion on the geodesic curve to motion of the surface point.

getDiscretePoints
public EllipsoidGeodesic(@Nonnull Ellipsoid ellipsoid, @Nonnull Cartographic initial, @Nonnull Cartographic _final)
ellipsoid
 The ellipsoid on which the geodesic lies.initial
 The initial planetodetic point on the path. The InitialPoint
(get
) will be on the ellipsoid surface at this location._final
 The final planetodetic point on the path. The FinalPoint
(get
) will be on the ellipsoid surface at this location.ArgumentNullException
 Thrown when the parameter ellipsoid
is null.ArgumentException
 Thrown when there is no unique geodesic curve connecting the initial
and
_final
points. This usually occurs when the two points are in opposition.UnsupportedCaseException
 The scalene case of a geodesic ellipsoid is not currently modeled and will be in a future release.public EllipsoidGeodesic(@Nonnull Ellipsoid ellipsoid, @Nonnull Cartographic initial, double heading, double distance)
ellipsoid
 The ellipsoid on which the geodesic lies.initial
 The initial planetodetic point on the path. The InitialPoint
(get
) will be on the ellipsoid surface at this location.heading
 The heading at the initial point.distance
 The distance along the geodesic to the location of the final point.ArgumentNullException
 Thrown when the parameter ellipsoid
is null.UnsupportedCaseException
 The scalene case of a geodesic ellipsoid is not currently modeled and will be in a future release.public Ellipsoid getEllipsoid()
getEllipsoid
in class EllipsoidSurfaceCurve
@Nonnull public Cartographic getInitialPoint()
getInitialPoint
in class EllipsoidSurfaceCurve
public final double getInitialHeading()
@Nonnull public Cartographic getFinalPoint()
getFinalPoint
in class EllipsoidSurfaceCurve
public final double getFinalHeading()
public double getSurfaceDistance()
getSurfaceDistance
in class EllipsoidSurfaceCurve
public CartographicExtent computeCartographicExtent()
Ellipsoid
(get
).computeCartographicExtent
in class EllipsoidSurfaceCurve
@Nonnull public Cartographic interpolateUsingFraction(double fraction)
interpolateUsingFraction
in class EllipsoidSurfaceCurve
fraction
 The portion of the distance between the initial and final points.@Nonnull public Cartographic interpolateUsingSurfaceDistance(double surfaceDistance)
interpolateUsingSurfaceDistance
in class EllipsoidSurfaceCurve
surfaceDistance
 The distance from the initial point to the point of interest along the geodesic.public final double heading(@Nonnull Cartographic location)
location
 The planetodetic location of interest.@Nonnull public final Motion1<Double> headingMotion(@Nonnull Cartographic location, double groundSpeed)
The location
must be a point on the geodesic.
location
 The planetodetic location of interest.groundSpeed
 The speed on the geodesic (ground speed) at the indicated location.@Nonnull public final Motion1<Cartesian> surfaceMotion(double distance, double groundSpeed, double groundAcceleration)
distance
 The distance from the initial point to the point of interest along the geodesic.groundSpeed
 The velocity on the geodesic.groundAcceleration
 The acceleration on the geodesic.@Nonnull public final Cartesian surfaceMotion(double distance)
distance
 The distance from the initial point to the point of interest along the geodesic.