LegSolution¶
struct nmeasim::core::geo::LegSolution ยท Library API
Bearings and distances of a leg and of the vessel relative to it.
#include <nmeasim/core/geo/route.hpp>
Declared in src/core/include/nmeasim/core/geo/route.hpp (line 17)
See also
Summary¶
Public data members
| Name | Description |
|---|---|
leg_bearing_deg |
Initial true bearing of the leg from its origin to its destination, in [0, 360). |
leg_length_m |
Length of the leg along the ellipsoid. |
bearing_deg |
Initial true bearing of the geodesic from the vessel to the destination, in [0, 360). |
distance_m |
Distance from the vessel to the destination along the ellipsoid. |
cross_track_m |
Signed distance of the vessel from the great circle through origin and destination: positive when the vessel is to the right (starboard) of the leg looking from origin to destination, negative to the left. |
along_track_m |
Progress of the vessel along the leg, measured from the origin: negative behind the origin, greater than leg_length_m beyond the destination. |
Public data members¶
leg_bearing_deg¶
double leg_bearing_deg{0.0}
Initial true bearing of the leg from its origin to its destination, in [0, 360).
Declared in src/core/include/nmeasim/core/geo/route.hpp:19
leg_length_m¶
double leg_length_m{0.0}
Length of the leg along the ellipsoid.
Declared in src/core/include/nmeasim/core/geo/route.hpp:21
bearing_deg¶
double bearing_deg{0.0}
Initial true bearing of the geodesic from the vessel to the destination, in [0, 360).
Declared in src/core/include/nmeasim/core/geo/route.hpp:23
distance_m¶
double distance_m{0.0}
Distance from the vessel to the destination along the ellipsoid.
Declared in src/core/include/nmeasim/core/geo/route.hpp:25
cross_track_m¶
double cross_track_m{0.0}
Signed distance of the vessel from the great circle through origin and destination: positive when the vessel is to the right (starboard) of the leg looking from origin to destination, negative to the left.
Declared in src/core/include/nmeasim/core/geo/route.hpp:29
along_track_m¶
double along_track_m{0.0}
Progress of the vessel along the leg, measured from the origin: negative behind the origin, greater than leg_length_m beyond the destination.
Declared in src/core/include/nmeasim/core/geo/route.hpp:32