-
cosineDistance
-
Returns the distance from c1 to c2 using the spherical law of cosines.
Parameters:
- Source:
Returns:
Spherical law of cosines distance.
-
Type
-
number
-
crossTrackDistance
-
Returns the distance of c3 from the great circle path defined by c1 and c2.
Parameters:
- Source:
Returns:
Cross-track distance.
-
Type
-
number
-
equirectangularDistance
-
Returns the distance from c1 to c2 using Pythagoras's theorem on an
equirectangular projection.
Parameters:
- Source:
Returns:
Equirectangular distance.
-
Type
-
number
-
finalBearing
-
Returns the final bearing from c1 to c2.
Parameters:
- Source:
Returns:
Initial bearing.
-
Type
-
number
-
haversineDistance
-
Returns the distance from c1 to c2 using the haversine formula.
Parameters:
- Source:
Returns:
Haversine distance.
-
Type
-
number
-
initialBearing
-
Returns the initial bearing from c1 to c2.
Parameters:
- Source:
Returns:
Initial bearing.
-
Type
-
number
-
maximumLatitude
-
Returns the maximum latitude of the great circle defined by bearing and
latitude.
Parameters:
| Name |
Type |
Description |
bearing |
number
|
Bearing. |
latitude |
number
|
Latitude. |
- Source:
Returns:
Maximum latitude.
-
Type
-
number
-
midpoint
-
Returns the midpoint between c1 and c2.
Parameters:
- Source:
Returns:
Midpoint.
-
Type
-
ol.Coordinate
-
offset
-
Returns the coordinate at the given distance and bearing from c.
Parameters:
| Name |
Type |
Description |
c1 |
ol.Coordinate
|
Coordinate. |
distance |
number
|
Distance. |
bearing |
number
|
Bearing. |
- Source:
Returns:
Coordinate.
-
Type
-
ol.Coordinate