new EllipsoidGeodesic
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
start |
Cartographic |
<optional> |
undefined | The initial planetodetic point on the path. |
end |
Cartographic |
<optional> |
undefined | The final planetodetic point on the path. |
ellipsoid |
Ellipsoid |
<optional> |
Ellipsoid.WGS84 | The ellipsoid on which the geodesic lies. |
Methods
-
getEnd
-
Returns:
Cartographic The final planetodetic point on the path. -
getEndHeading
-
Throws:
DeveloperError : start and end must be set before calling funciton getEndHeadingReturns:
Number The heading at the final point. -
getStart
-
Returns:
Cartographic The initial planetodetic point on the path. -
getStartHeading
-
Throws:
DeveloperError : start and end must be set before calling funciton getSurfaceDistanceReturns:
Number The heading at the initial point. -
getSurfaceDistance
-
Throws:
DeveloperError : start and end must be set before calling funciton getSurfaceDistanceReturns:
Number The surface distance between the start and end point -
interpolateUsingFraction
-
Provides the location of a point at the indicated portion along the geodesic.
Parameters:
Name Type Description fraction
Number The portion of the distance between the initial and final points. Returns:
Cartographic The location of the point along the geodesic. -
interpolateUsingSurfaceDistance
-
Provides the location of a point at the indicated distance along the geodesic.
Parameters:
Name Type Description distance
Number The distance from the inital point to the point of interest along the geodesic Throws:
DeveloperError : start and end must be set before calling funciton interpolateUsingSurfaceDistanceReturns:
Cartographic The location of the point along the geodesic. -
setEndPoints
-
Sets the start and end points of the geodesic
Parameters:
Name Type Description start
Cartographic The initial planetodetic point on the path. end
Cartographic The final planetodetic point on the path. Throws:
-
DeveloperError : start cartographic position is required
-
DeveloperError : end cartographic position is required
-