FlightGear next
TrackComputer Class Reference

A little helper class to update the track if the position has changed. More...

#include <flight.hxx>

Public Member Functions

 TrackComputer (double &track, double &path, const SGGeod &position)
 
 ~TrackComputer ()
 

Detailed Description

A little helper class to update the track if the position has changed.

In the constructor, create a copy of the current position and store references to the position object and the track variable to update. The destructor, called at TrackComputer's end of life/visibility, computes the track if the position has changed.

Definition at line 104 of file flight.hxx.

Constructor & Destructor Documentation

◆ TrackComputer()

TrackComputer::TrackComputer ( double & track,
double & path,
const SGGeod & position )
inline

Definition at line 107 of file flight.hxx.

◆ ~TrackComputer()

TrackComputer::~TrackComputer ( )
inline

Definition at line 114 of file flight.hxx.


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