EllipsoidGeodesic - Cesium Documentation

# EllipsoidGeodesic

#### new EllipsoidGeodesic(start, end, ellipsoid)

  Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `start` | Cartographic |  | optional The initial planetodetic point on the path.
  `end` | Cartographic |  | optional The final planetodetic point on the path.
  `ellipsoid` | Ellipsoid | `Ellipsoid.WGS84` | optional The ellipsoid on which the geodesic lies.

  Source: Core/EllipsoidGeodesic.js, line 208

### Members

#### ellipsoid :Ellipsoid

  Gets the ellipsoid.
  Source: Core/EllipsoidGeodesic.js, line 231

#### end :Cartographic

  Gets the final planetodetic point on the path.
  Source: Core/EllipsoidGeodesic.js, line 270

#### endHeading :Number

  Gets the heading at the final point.
  Source: Core/EllipsoidGeodesic.js, line 298

#### start :Cartographic

  Gets the initial planetodetic point on the path.
  Source: Core/EllipsoidGeodesic.js, line 259

#### startHeading :Number

  Gets the heading at the initial point.
  Source: Core/EllipsoidGeodesic.js, line 281

#### surfaceDistance :Number

  Gets the surface distance between the start and end point
  Source: Core/EllipsoidGeodesic.js, line 242

### Methods

#### interpolateUsingFraction(fraction) → Cartographic

  Provides the location of a point at the indicated portion along the geodesic.

  Name | Type | Description
  --- | --- | ---
  `fraction` | Number | The portion of the distance between the initial and final points.

  ##### Returns:

  The location of the point along the geodesic.
  Source: Core/EllipsoidGeodesic.js, line 336

#### interpolateUsingSurfaceDistance(distance) → Cartographic

  Provides the location of a point at the indicated distance along the geodesic.

  Name | Type | Description
  --- | --- | ---
  `distance` | Number | The distance from the inital point to the point of interest along the geodesic

  ##### Returns:

  The location of the point along the geodesic.

  ##### Throws:

  - DeveloperError : start and end must be set before calling funciton interpolateUsingSurfaceDistance
  Source: Core/EllipsoidGeodesic.js, line 348

#### setEndPoints(start, end)

  Sets the start and end points of the geodesic

  Name | Type | Description
  --- | --- | ---
  `start` | Cartographic | The initial planetodetic point on the path.
  `end` | Cartographic | The final planetodetic point on the path.

  Source: Core/EllipsoidGeodesic.js, line 317