Class: EllipsoidGeodesic

EllipsoidGeodesic

new EllipsoidGeodesic(startopt, endopt, ellipsoidopt)

Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
Parameters:
Name Type Attributes Default Description
start Cartographic <optional>
The initial planetodetic point on the path.
end Cartographic <optional>
The final planetodetic point on the path.
ellipsoid Ellipsoid <optional>
Ellipsoid.WGS84 The ellipsoid on which the geodesic lies.
Source:

Members

(readonly) ellipsoid :Ellipsoid

Gets the ellipsoid.
Type:
Source:

(readonly) end :Cartographic

Gets the final planetodetic point on the path.
Type:
Source:

(readonly) endHeading :Number

Gets the heading at the final point.
Type:
  • Number
Source:

(readonly) start :Cartographic

Gets the initial planetodetic point on the path.
Type:
Source:

(readonly) startHeading :Number

Gets the heading at the initial point.
Type:
  • Number
Source:

(readonly) surfaceDistance :Number

Gets the surface distance between the start and end point
Type:
  • Number
Source:

Methods

interpolateUsingFraction(fraction) → {Cartographic}

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.
Source:
Returns:
The location of the point along the geodesic.
Type
Cartographic

interpolateUsingSurfaceDistance(distance) → {Cartographic}

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
Source:
Throws:
start and end must be set before calling function interpolateUsingSurfaceDistance
Type
DeveloperError
Returns:
The location of the point along the geodesic.
Type
Cartographic

setEndPoints(start, end)

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.
Source: