[XP] Get the ground elevation under the own aircraft

This commit is contained in:
Mat Sutcliffe
2022-02-03 20:43:23 +00:00
parent f5a9452ec2
commit 2ccee127e9
8 changed files with 42 additions and 0 deletions

View File

@@ -36,7 +36,10 @@ namespace XSwiftBus
//! Get the elevation in meters at the given point in OpenGL space.
//! \note Due to the Earth's curvature, the OpenGL vertical axis may not be exactly perpendicular to the surface of the geoid.
//! \return NaN if no ground was detected.
//! @{
std::array<double, 3> getElevation(double degreesLatitude, double degreesLongitude, double metersAltitude) const;
std::array<double, 3> getElevation(double degreesLatitude, double degreesLongitude, double metersAltitude, const std::string &callsign, bool &o_isWater) const;
//! @}
private:
XPLMProbeRef m_ref = nullptr;