FlightGear next
util.cxx File Reference
#include <simgear/compiler.h>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/SGLimits.hxx>
#include <simgear/math/SGMisc.hxx>
#include <GUI/MessageBox.hxx>
#include "fg_io.hxx"
#include "fg_props.hxx"
#include "globals.hxx"
#include "util.hxx"

Go to the source code of this file.

Functions

double fgGetLowPass (double current, double target, double timeratio)
 Move a value towards a target.
 
void fgInitAllowedPaths ()
 Allowed paths here are absolute, and may contain one *, which matches any string.
 
std::string generateAuthorsText (SGPropertyNode *authors)
 

Function Documentation

◆ fgGetLowPass()

double fgGetLowPass ( double current,
double target,
double timeratio )

Move a value towards a target.

This function was originally written by Alex Perry.

Parameters
currentThe current value.
targetThe target value.
timeratioThe percentage of smoothing time that has passed (elapsed time/smoothing time)
Returns
The new value.

Definition at line 46 of file util.cxx.

◆ fgInitAllowedPaths()

void fgInitAllowedPaths ( )

Allowed paths here are absolute, and may contain one *, which matches any string.

Set the read and write lists of allowed paths patterns for SGPath::validate()

Definition at line 112 of file util.cxx.

◆ generateAuthorsText()

std::string generateAuthorsText ( SGPropertyNode * authors)

Definition at line 172 of file util.cxx.