Function lupnt::GetBodyGM(BodyId)

Function Documentation

double lupnt::GetBodyGM(BodyId body)

Return the body’s gravitational parameter GM [m^3/s^2] (SI units).

Convenience accessor over GetBodyData used e.g. by time_conversions.cc for relativistic time-scale corrections and by StateConverter to convert orbital-element states using the correct central-body GM.

Parameters:

bodyBody identifier

Returns:

Gravitational parameter [m^3/s^2]