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
EdyCommonTools.MathUtility Class Reference

Static Public Member Functions

static float ClampAngle (float angle)
 
static float ClampAngle360 (float angle)
 
static float ClampMagnitude (float a, float min, float max)
 
static Vector3 ClosestPointOnPlane (Vector3 planePoint, Vector3 planeNormal, Vector3 point)
 
static float CubicLerp (float x0, float y0, float x1, float y1, float x)
 
static float CubicLerp (Vector2 from, Vector2 to, float t)
 
static float FastAbs (float x)
 
static float FloorDecimals (float value, int decimals)
 
static Vector3 FloorDecimals (Vector3 value, int decimals)
 
static bool IsSimilar (float a, float b, float threshold=0.0001f)
 
static bool IsSimilarOrGreater (float a, float b, float threshold=0.0001f)
 
static bool IsSimilarOrSmaller (float a, float b, float threshold=0.0001f)
 
static float Lin2Log (float val)
 
static Vector3 Lin2Log (Vector3 val)
 
static float LinearLerp (float x0, float y0, float x1, float y1, float x)
 
static float LinearLerp (Vector2 from, Vector2 to, float t)
 
static float MaxAbs (float a, float b)
 
static float MinAbs (float a, float b)
 
static float RoundDecimals (float value, int decimals)
 
static Vector3 RoundDecimals (Vector3 value, int decimals)
 
static float SmootherStep (float from, float to, float t)
 
static float SmoothStep (float from, float to, float t)
 
static float TangentLerp (float x0, float y0, float x1, float y1, float a, float b, float x)
 
static float TangentLerp (Vector2 from, Vector2 to, float a, float b, float t)
 
static float UnclampedLerp (float from, float to, float t)
 
static bool Vector3Equals (Vector3 a, Vector3 b)
 

Member Function Documentation

static float EdyCommonTools.MathUtility.ClampAngle ( float  angle)
inlinestatic
static float EdyCommonTools.MathUtility.ClampAngle360 ( float  angle)
inlinestatic
static float EdyCommonTools.MathUtility.ClampMagnitude ( float  a,
float  min,
float  max 
)
inlinestatic
static Vector3 EdyCommonTools.MathUtility.ClosestPointOnPlane ( Vector3  planePoint,
Vector3  planeNormal,
Vector3  point 
)
inlinestatic
static float EdyCommonTools.MathUtility.CubicLerp ( float  x0,
float  y0,
float  x1,
float  y1,
float  x 
)
inlinestatic
static float EdyCommonTools.MathUtility.CubicLerp ( Vector2  from,
Vector2  to,
float  t 
)
inlinestatic
static float EdyCommonTools.MathUtility.FastAbs ( float  x)
inlinestatic
static float EdyCommonTools.MathUtility.FloorDecimals ( float  value,
int  decimals 
)
inlinestatic
static Vector3 EdyCommonTools.MathUtility.FloorDecimals ( Vector3  value,
int  decimals 
)
inlinestatic
static bool EdyCommonTools.MathUtility.IsSimilar ( float  a,
float  b,
float  threshold = 0.0001f 
)
inlinestatic
static bool EdyCommonTools.MathUtility.IsSimilarOrGreater ( float  a,
float  b,
float  threshold = 0.0001f 
)
inlinestatic
static bool EdyCommonTools.MathUtility.IsSimilarOrSmaller ( float  a,
float  b,
float  threshold = 0.0001f 
)
inlinestatic
static float EdyCommonTools.MathUtility.Lin2Log ( float  val)
inlinestatic
static Vector3 EdyCommonTools.MathUtility.Lin2Log ( Vector3  val)
inlinestatic
static float EdyCommonTools.MathUtility.LinearLerp ( float  x0,
float  y0,
float  x1,
float  y1,
float  x 
)
inlinestatic
static float EdyCommonTools.MathUtility.LinearLerp ( Vector2  from,
Vector2  to,
float  t 
)
inlinestatic
static float EdyCommonTools.MathUtility.MaxAbs ( float  a,
float  b 
)
inlinestatic
static float EdyCommonTools.MathUtility.MinAbs ( float  a,
float  b 
)
inlinestatic
static float EdyCommonTools.MathUtility.RoundDecimals ( float  value,
int  decimals 
)
inlinestatic
static Vector3 EdyCommonTools.MathUtility.RoundDecimals ( Vector3  value,
int  decimals 
)
inlinestatic
static float EdyCommonTools.MathUtility.SmootherStep ( float  from,
float  to,
float  t 
)
inlinestatic
static float EdyCommonTools.MathUtility.SmoothStep ( float  from,
float  to,
float  t 
)
inlinestatic
static float EdyCommonTools.MathUtility.TangentLerp ( float  x0,
float  y0,
float  x1,
float  y1,
float  a,
float  b,
float  x 
)
inlinestatic
static float EdyCommonTools.MathUtility.TangentLerp ( Vector2  from,
Vector2  to,
float  a,
float  b,
float  t 
)
inlinestatic
static float EdyCommonTools.MathUtility.UnclampedLerp ( float  from,
float  to,
float  t 
)
inlinestatic
static bool EdyCommonTools.MathUtility.Vector3Equals ( Vector3  a,
Vector3  b 
)
inlinestatic

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