FlightGear next
Environment::MagneticVariation Class Reference

Helper class to wrap SGMagVar functionality and cache the variation and dip for a certain position. More...

Inherits SGMagVar.

Public Member Functions

 MagneticVariation ()
 Constructor.
 
double get_variation_deg (double lon, double lat, double alt)
 get the magnetic variation for a specific position at the current time
 
double get_dip_deg (double lon, double lat, double alt)
 get the magnetic dip for a specific position at the current time
 

Detailed Description

Helper class to wrap SGMagVar functionality and cache the variation and dip for a certain position.

Definition at line 38 of file metarproperties.cxx.

Constructor & Destructor Documentation

◆ MagneticVariation()

Environment::MagneticVariation::MagneticVariation ( )
inline

Constructor.

Definition at line 43 of file metarproperties.cxx.

Member Function Documentation

◆ get_dip_deg()

double Environment::MagneticVariation::get_dip_deg ( double lon,
double lat,
double alt )
inline

get the magnetic dip for a specific position at the current time

Parameters
lonthe positions longitude in degrees
latthe positions latitude in degrees
altthe positions height above MSL (aka altitude) in feet
Returns
the magnetic dip in degrees

Definition at line 92 of file metarproperties.cxx.

◆ get_variation_deg()

double Environment::MagneticVariation::get_variation_deg ( double lon,
double lat,
double alt )
inline

get the magnetic variation for a specific position at the current time

Parameters
lonthe positions longitude in degrees
latthe positions latitude in degrees
altthe positions height above MSL (aka altitude) in feet
Returns
the magnetic variation in degrees

Definition at line 86 of file metarproperties.cxx.


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