mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
[xswiftbus] getElevationAtPosition also returns latitude and longitude
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <XPLM/XPLMScenery.h>
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
namespace XSwiftBus
|
||||
{
|
||||
@@ -35,7 +36,7 @@ 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.
|
||||
double getElevation(double degreesLatitude, double degreesLongitude, double metersAltitude, const std::string &callsign) const;
|
||||
std::array<double, 3> getElevation(double degreesLatitude, double degreesLongitude, double metersAltitude, const std::string &callsign) const;
|
||||
|
||||
private:
|
||||
XPLMProbeRef m_ref = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user