Loading...
Searching...
No Matches
Geodesic.cpp File Reference

Implementation for GeographicLib::Geodesic class. More...

`#include <GeographicLib/Geodesic.hpp>`
`#include <GeographicLib/GeodesicLine.hpp>`

Go to the source code of this file.

## Namespaces

namespace | GeographicLib
| Namespace for GeographicLib.

## Detailed Description

Implementation for GeographicLib::Geodesic class.

Copyright (c) Charles Karney (2009-2025) karne.nosp@m.y@al.nosp@m.um.mi.nosp@m.t.ed.nosp@m.u and licensed under the MIT/X11 License. For more information, see https://geographiclib.sourceforge.io/

This is a reformulation of the geodesic problem. The notation is as follows:

- at a general point (no suffix or 1 or 2 as suffix)
  - phi = latitude
  - beta = latitude on auxiliary sphere
  - omega = longitude on auxiliary sphere
  - lambda = longitude
  - alpha = azimuth of great circle
  - sigma = arc length along great circle
  - s = distance
  - tau = scaled distance (= sigma at multiples of pi/2)
- at northwards equator crossing
  - beta = phi = 0
  - omega = lambda = 0
  - alpha = alpha0
  - sigma = s = 0
- a 12 suffix means a difference, e.g., s12 = s2 - s1.
- s and c prefixes mean sin and cos

Definition in file Geodesic.cpp.