Photomechanics API
MathExtensions Class Reference

Extensions for Math. More...

Static Public Member Functions

static Double Lerp (Double a, Double b, Double t)
 Linear interpolation between a and b with factor t.
 
static Int32 LerpRounded (Int32 a, Int32 b, Double t, MidpointRounding rounding=MidpointRounding.ToEven)
 Linear interpolation between integers a and b with factor t with given rounding method.
 
static Int64 LerpRounded (Int64 a, Int64 b, Double t, MidpointRounding rounding=MidpointRounding.ToEven)
 Linear interpolation between integers a and b with factor t with given rounding method.
 
static Byte LerpRounded (Byte a, Byte b, Double t, MidpointRounding rounding=MidpointRounding.ToEven)
 Linear interpolation between integers a and b with factor t with given rounding method.
 

Detailed Description

Extensions for Math.