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. |
Source:
Members
-
end :Cartographic
-
The final planetodetic point on the path.
-
endHeading :Number
-
The heading at the final point.
-
start :Cartographic
-
The initial planetodetic point on the path.
-
startHeading :Number
-
The heading at the initial point.
-
surfaceDistance :Number
-
The surface distance between the start and end point
Methods
-
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.