Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
Mathfx Class Reference

Static Public Member Functions

static bool Approx (float val, float about, float range)
 
static bool Approx (Vector3 val, Vector3 about, float range)
 
static float Berp (float start, float end, float value)
 
static float Bounce (float x)
 
static float Clerp (float start, float end, float value)
 
static float Coserp (float start, float end, float value)
 
static float CubicHermiteSpline (float start, float end, float v, float easeIn, float easeOut)
 
static float Ease (float v, float power)
 
static float Easerp (float start, float end, float v)
 
static float Easerp (float start, float end, float v, float power)
 
static Vector3 GetWeightedAvgVector3 (int count, Func< int, Vector3 > getVector, Func< int, float > getWeight)
 
static float Hermite (float start, float end, float value)
 
static float HermiteIntegral ()
 
static float Lerp (float start, float end, float value)
 
static double Lerp (double start, double end, double value)
 
static Vector3 NearestPoint (Vector3 lineStart, Vector3 lineEnd, Vector3 point)
 
static Vector3 NearestPointStrict (Vector3 lineStart, Vector3 lineEnd, Vector3 point)
 
static float Sinerp (float start, float end, float value)
 
static float SinerpIntegral ()
 
static float SmoothStep (float x, float min, float max)
 
static float XLerp (float start, float end, float value, float power)
 

Member Function Documentation

static bool Mathfx.Approx ( float  val,
float  about,
float  range 
)
inlinestatic
static bool Mathfx.Approx ( Vector3  val,
Vector3  about,
float  range 
)
inlinestatic
static float Mathfx.Berp ( float  start,
float  end,
float  value 
)
inlinestatic
static float Mathfx.Bounce ( float  x)
inlinestatic
static float Mathfx.Clerp ( float  start,
float  end,
float  value 
)
inlinestatic

< Debug.Log("Start: " + start + " End: " + end + " Value: " + value + " Half: " + half + " Diff: " + diff + " Retval: " + retval);

static float Mathfx.Coserp ( float  start,
float  end,
float  value 
)
inlinestatic
static float Mathfx.CubicHermiteSpline ( float  start,
float  end,
float  v,
float  easeIn,
float  easeOut 
)
inlinestatic
static float Mathfx.Ease ( float  v,
float  power 
)
inlinestatic
static float Mathfx.Easerp ( float  start,
float  end,
float  v 
)
inlinestatic
static float Mathfx.Easerp ( float  start,
float  end,
float  v,
float  power 
)
inlinestatic
static Vector3 Mathfx.GetWeightedAvgVector3 ( int  count,
Func< int, Vector3 >  getVector,
Func< int, float >  getWeight 
)
inlinestatic
static float Mathfx.Hermite ( float  start,
float  end,
float  value 
)
inlinestatic
static float Mathfx.HermiteIntegral ( )
inlinestatic
static float Mathfx.Lerp ( float  start,
float  end,
float  value 
)
inlinestatic
static double Mathfx.Lerp ( double  start,
double  end,
double  value 
)
inlinestatic
static Vector3 Mathfx.NearestPoint ( Vector3  lineStart,
Vector3  lineEnd,
Vector3  point 
)
inlinestatic
static Vector3 Mathfx.NearestPointStrict ( Vector3  lineStart,
Vector3  lineEnd,
Vector3  point 
)
inlinestatic
static float Mathfx.Sinerp ( float  start,
float  end,
float  value 
)
inlinestatic
static float Mathfx.SinerpIntegral ( )
inlinestatic
static float Mathfx.SmoothStep ( float  x,
float  min,
float  max 
)
inlinestatic
static float Mathfx.XLerp ( float  start,
float  end,
float  value,
float  power 
)
inlinestatic

The documentation for this class was generated from the following file: