Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.DoubleExt Class Reference

Static Public Member Functions

static double MoveTowards (this double current, double target, double maxDelta)
 
static double Sign (this double f)
 
static double Abs (this double f)
 
static double Clamp (this double value, double min, double max)
 
static double Clamp01 (this double value)
 
static double Remap (this double s, double from1, double from2, double to1, double to2)
 
static double Remap01 (this double value, double from1, double from2)
 

Member Function Documentation

◆ Abs()

static double Megapop.MegaCore.DoubleExt.Abs ( this double  f)
static

◆ Clamp()

static double Megapop.MegaCore.DoubleExt.Clamp ( this double  value,
double  min,
double  max 
)
inlinestatic

◆ Clamp01()

static double Megapop.MegaCore.DoubleExt.Clamp01 ( this double  value)
inlinestatic

◆ MoveTowards()

static double Megapop.MegaCore.DoubleExt.MoveTowards ( this double  current,
double  target,
double  maxDelta 
)
static

◆ Remap()

static double Megapop.MegaCore.DoubleExt.Remap ( this double  s,
double  from1,
double  from2,
double  to1,
double  to2 
)
inlinestatic

◆ Remap01()

static double Megapop.MegaCore.DoubleExt.Remap01 ( this double  value,
double  from1,
double  from2 
)
inlinestatic

◆ Sign()

static double Megapop.MegaCore.DoubleExt.Sign ( this double  f)
static

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