swift
Public Member Functions | List of all members
XSwiftBus::CTerrainProbe Class Reference

Class based interface to X-Plane SDK terrain probe. More...

Public Member Functions

 CTerrainProbe ()
 Constructor.
 
 ~CTerrainProbe ()
 Destructor;.
 
 CTerrainProbe (const CTerrainProbe &)=delete
 Not copyable.
 
CTerrainProbeoperator= (const CTerrainProbe &)=delete
 Not copyable.
 
std::array< double, 3 > getElevation (double degreesLatitude, double degreesLongitude, double metersAltitude) const
 Get the elevation in meters at the given point in OpenGL space. More...
 
std::array< double, 3 > getElevation (double degreesLatitude, double degreesLongitude, double metersAltitude, const std::string &callsign, bool &o_isWater) const
 Get the elevation in meters at the given point in OpenGL space. More...
 

Detailed Description

Class based interface to X-Plane SDK terrain probe.

Definition at line 17 of file terrainprobe.h.

Member Function Documentation

◆ getElevation() [1/2]

std::array< double, 3 > XSwiftBus::CTerrainProbe::getElevation ( double  degreesLatitude,
double  degreesLongitude,
double  metersAltitude 
) const

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.
Returns
NaN if no ground was detected.

Definition at line 19 of file terrainprobe.cpp.

◆ getElevation() [2/2]

std::array< double, 3 > XSwiftBus::CTerrainProbe::getElevation ( double  degreesLatitude,
double  degreesLongitude,
double  metersAltitude,
const std::string &  callsign,
bool &  o_isWater 
) const

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.
Returns
NaN if no ground was detected.

Definition at line 27 of file terrainprobe.cpp.


The documentation for this class was generated from the following files: