XPPlanes
X-Plane plugin to display additional planes based on network data
Macros | Functions
Plane.cpp File Reference

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...
 

Detailed Description

The Plane class represents, guess what, a plane.

Author
Birger Hoppe

Macro Definition Documentation

◆ IP_01

#define IP_01 (   fct,
 
)    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

Function Documentation

◆ PlaneMaintenance()

void PlaneMaintenance ( )

Regular updates from flight data.

◆ PlaneShutdown()

void PlaneShutdown ( )

Shutdown the plane module.

◆ PlaneStartup()

bool PlaneStartup ( )

Initialie the Plane module.