Difference between revisions of "Script/VisualGlobalFunctions"
From SF3
Line 59: | Line 59: | ||
|- | |- | ||
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|float]] | | style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|float]] | ||
− | | style='color: black; width: 90%; line-height: 0.8;' | '''Interpolate''' (const [[../BasicDataTypes|float]] ''_fA'', const [[../BasicDataTypes|float]] ''_fB'', const [[../BasicDataTypes|float]] ''_fS'', const [[../VisualEnums|EInterpolation]] ''_Mode'', const [[../BasicDataTypes|float]] ''_fExponent'' = 2.0f) | + | | style='color: black; width: 90%; line-height: 0.8;' | '''Interpolate''' (const [[../BasicDataTypes|float]] ''_fA'', const [[../BasicDataTypes|float]] ''_fB'', const [[../BasicDataTypes|float]] ''_fS'', const [[../VisualEnums#EInterpolation|EInterpolation]] ''_Mode'', const [[../BasicDataTypes|float]] ''_fExponent'' = 2.0f) |
|- | |- | ||
| | | |
Latest revision as of 10:41, 7 September 2016
Global Functions
This is a list of global functions available for use in visual scripts.
void | print (const string&in) |
float | RandomFloat (const float _fFrom, const float _fTo) |
int | RandomInt (const int _iFrom, const int _iTo) |
float | Sin (const float _fRadians) |
float | Cos (const float _fRadians) |
float | Tan (const float _fRadians) |
float | ArcSin (const float _fX) |
float | ArcCos (const float _fX) |
float | ArcTan (const float _fX) |
float | ArcTan (const float _fY, const float _fX) |
float | Round (const float _fValue) |
float | RadianToDegree (const float _fRadians) |
float | DegreeToRadian (const float _fDegree) |
float | Clamp (const float _fValue, const float _fMin, const float _fMax) |
float | Pow (const float _fX, const float _fPower) |
float | Sqrt (const float _fValue) |
float | Interpolate (const float _fA, const float _fB, const float _fS) |
interpolate linearly between _fA and _fB based on the scalar _fS (value between 0 and 1). | |
float | Interpolate (const float _fA, const float _fB, const float _fS, const EInterpolation _Mode, const float _fExponent = 2.0f) |
interpolate between values _fA and _fB based on the scalar _fS (value between 0 and 1) using an interpolation mode of your choice. |