#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.
|
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) |
|
◆ fgGetLowPass()
double fgGetLowPass |
( |
double | current, |
|
|
double | target, |
|
|
double | timeratio ) |
Move a value towards a target.
This function was originally written by Alex Perry.
- Parameters
-
current | The current value. |
target | The target value. |
timeratio | The 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 | ) |
|