# EllipsoidRhumbLine

#### new Cesium.EllipsoidRhumbLine(start, end, ellipsoid)
engine/Source/Core/EllipsoidRhumbLine.js 392

Initializes a rhumb line 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 rhumb line lies.

##### Throws:

- DeveloperError : angle between start and end must be at least 0.0125 radians.

### Members

#### readonly ellipsoid : Ellipsoid
engine/Source/Core/EllipsoidRhumbLine.js 415

Gets the ellipsoid.

#### readonly end : Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 455

Gets the final planetodetic point on the path.

#### readonly heading : number
engine/Source/Core/EllipsoidRhumbLine.js 467

Gets the heading from the start point to the end point.

#### readonly start : Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 443

Gets the initial planetodetic point on the path.

#### readonly surfaceDistance : number
engine/Source/Core/EllipsoidRhumbLine.js 427

Gets the surface distance between the start and end point

### Methods

#### static Cesium.EllipsoidRhumbLine.fromStartHeadingDistance(start, heading, distance, ellipsoid, result) → EllipsoidRhumbLine
engine/Source/Core/EllipsoidRhumbLine.js 488

Create a rhumb line using an initial position with a heading and distance.

Name | Type | Default | Description
--- | --- | --- | ---
`start` | Cartographic |  | The initial planetodetic point on the path.
`heading` | number |  | The heading in radians.
`distance` | number |  | The rhumb line distance between the start and end point.
`ellipsoid` | Ellipsoid | `Ellipsoid.default` | optional The ellipsoid on which the rhumb line lies.
`result` | EllipsoidRhumbLine |  | optional The object in which to store the result.

##### Returns:

The EllipsoidRhumbLine object.

#### findIntersectionWithLatitude(intersectionLatitude, result) → Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 707

Provides the location of a point at the indicated latitude along the rhumb line. If the latitude is outside the range of start and end points, the first intersection with the latitude from that start point in the direction of the heading is returned. This follows the spiral property of a rhumb line.

Name | Type | Description
--- | --- | ---
`intersectionLatitude` | number | The latitude, in radians, at which to find the intersection point from the starting point using the heading.
`result` | Cartographic | optional The object in which to store the result.

##### Returns:

The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.

##### Throws:

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

#### findIntersectionWithLongitude(intersectionLongitude, result) → Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 603

Provides the location of a point at the indicated longitude along the rhumb line. If the longitude is outside the range of start and end points, the first intersection with the longitude from the start point in the direction of the heading is returned. This follows the spiral property of a rhumb line.

Name | Type | Description
--- | --- | ---
`intersectionLongitude` | number | The longitude, in radians, at which to find the intersection point from the starting point using the heading.
`result` | Cartographic | optional The object in which to store the result.

##### Returns:

The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.

##### Throws:

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

#### interpolateUsingFraction(fraction, result) → Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 551

Provides the location of a point at the indicated portion along the rhumb line.

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 rhumb line.

#### interpolateUsingSurfaceDistance(distance, result) → Cartographic
engine/Source/Core/EllipsoidRhumbLine.js 570

Provides the location of a point at the indicated distance along the rhumb line.

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

##### Returns:

The location of the point along the rhumb line.

##### Throws:

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

#### setEndPoints(start, end)
engine/Source/Core/EllipsoidRhumbLine.js 535

Sets the start and end points of the rhumb line.

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.