XPPlanes
X-Plane plugin to display additional planes based on network data
|
The Plane class represents, guess what, a plane. More...
#include "XPPlanes.h"
Macros | |
#define | IP_01(fct, v) fct(std::clamp<float>(std::fmaf(f, fdTo->v - fdFrom->v, fdFrom->v), 0.0f,1.0f)); |
Calculate interpolation between 0 and 1 from the FlightData objects. More... | |
Functions | |
void | PlaneMaintenance () |
Regular updates from flight data. More... | |
bool | PlaneStartup () |
Initialie the Plane module. More... | |
void | PlaneShutdown () |
Shutdown the plane module. More... | |
The Plane class represents, guess what, a plane.
#define IP_01 | ( | fct, | |
v | |||
) | fct(std::clamp<float>(std::fmaf(f, fdTo->v - fdFrom->v, fdFrom->v), 0.0f,1.0f)); |
Calculate interpolation between 0 and 1 from the FlightData objects.
If to
is NAN
then does nothing, does not change the existing value, else if from
is NAN
sets just the to
value, otherwise interpolates between from
and to
using f
void PlaneMaintenance | ( | ) |
Regular updates from flight data.
void PlaneShutdown | ( | ) |
Shutdown the plane module.
bool PlaneStartup | ( | ) |
Initialie the Plane module.