# EllipsoidGeodesic

#### new Cesium.EllipsoidGeodesic(start, end, ellipsoid)
engine/Source/Core/EllipsoidGeodesic.js 285

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.default` | optional The ellipsoid on which the geodesic lies.

### Members

#### readonly ellipsoid : Ellipsoid
engine/Source/Core/EllipsoidGeodesic.js 309

Gets the ellipsoid.

#### readonly end : Cartographic
engine/Source/Core/EllipsoidGeodesic.js 349

Gets the final planetodetic point on the path.

#### readonly endHeading : number
engine/Source/Core/EllipsoidGeodesic.js 377

Gets the heading at the final point.

#### readonly start : Cartographic
engine/Source/Core/EllipsoidGeodesic.js 337

Gets the initial planetodetic point on the path.

#### readonly startHeading : number
engine/Source/Core/EllipsoidGeodesic.js 361

Gets the heading at the initial point.

#### readonly surfaceDistance : number
engine/Source/Core/EllipsoidGeodesic.js 321

Gets the surface distance between the start and end point

### Methods

#### interpolateUsingFraction(fraction, result) → Cartographic
engine/Source/Core/EllipsoidGeodesic.js 410

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.
`result` | Cartographic | optional The object in which to store the result.

##### Returns:

The location of the point along the geodesic.

#### interpolateUsingSurfaceDistance(distance, result) → Cartographic
engine/Source/Core/EllipsoidGeodesic.js 429

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

Name | Type | Description
--- | --- | ---
`distance` | number | The distance from the initial point to the point of interest along the geodesic
`result` | Cartographic | optional The object in which to store the result.

##### Returns:

The location of the point along the geodesic.

##### Throws:

- DeveloperError : start and end must be set before calling function interpolateUsingSurfaceDistance

#### setEndPoints(start, end)
engine/Source/Core/EllipsoidGeodesic.js 394

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.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.