![]() |
siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
|
Parameters for a body-centric coordinate system. More...
#include <siderust/orbital_center.hpp>

Public Member Functions | |
| BodycentricParams (const KeplerianOrbit &orb, OrbitReferenceCenter center) | |
| Creates parameters for a body with the given orbit. | |
| BodycentricParams () | |
| Default: circular 1 AU heliocentric orbit (placeholder). | |
| SiderustBodycentricParams | to_c () const |
Static Public Member Functions | |
| static BodycentricParams | heliocentric (const KeplerianOrbit &orb) |
| Creates parameters for a body orbiting the Sun. | |
| static BodycentricParams | geocentric (const KeplerianOrbit &orb) |
| Creates parameters for a body orbiting Earth. | |
| static BodycentricParams | barycentric (const KeplerianOrbit &orb) |
| Creates parameters for a body orbiting the barycenter. | |
Public Attributes | |
| KeplerianOrbit | orbit |
| Keplerian orbital elements of the body. | |
| OrbitReferenceCenter | orbit_center |
| Which standard center the orbit is defined relative to. | |
Parameters for a body-centric coordinate system.
Specifies the orbital elements of a celestial body and the reference center for those elements. This allows computing a body's position at any Julian date using Keplerian propagation, then using that position as the origin of a coordinate system.
Definition at line 95 of file orbital_center.hpp.
|
inline |
Creates parameters for a body with the given orbit.
| orb | The Keplerian orbital elements. |
| center | The reference center for the orbit. |
Definition at line 108 of file orbital_center.hpp.
|
inline |
Default: circular 1 AU heliocentric orbit (placeholder).
Definition at line 146 of file orbital_center.hpp.
Referenced by barycentric(), geocentric(), and heliocentric().
|
inlinestatic |
Creates parameters for a body orbiting the barycenter.
| orb | Barycentric orbital elements. |
Definition at line 141 of file orbital_center.hpp.
References siderust::Barycentric, and BodycentricParams().
|
inlinestatic |
Creates parameters for a body orbiting Earth.
Use for artificial satellites, the Moon, etc.
| orb | Geocentric orbital elements. |
Definition at line 131 of file orbital_center.hpp.
References BodycentricParams(), and siderust::Geocentric.
|
inlinestatic |
Creates parameters for a body orbiting the Sun.
Most common: planets, asteroids, comets.
| orb | Heliocentric orbital elements. |
Definition at line 119 of file orbital_center.hpp.
References BodycentricParams(), and siderust::Heliocentric.
|
inline |
Convert to C FFI struct for passing to siderust_to_bodycentric / siderust_from_bodycentric.
Definition at line 154 of file orbital_center.hpp.
References orbit, orbit_center, and siderust::KeplerianOrbit::to_c().
Referenced by siderust::to_bodycentric(), and siderust::BodycentricPos< F, U >::to_geocentric().
| KeplerianOrbit siderust::BodycentricParams::orbit |
Keplerian orbital elements of the body.
Definition at line 97 of file orbital_center.hpp.
Referenced by to_c().
| OrbitReferenceCenter siderust::BodycentricParams::orbit_center |
Which standard center the orbit is defined relative to.
Definition at line 100 of file orbital_center.hpp.
Referenced by to_c().