static public FloatVariance GetExpanded(this FloatVariance item, float value) { return(new FloatVariance( item.value, item.radius.Max((float)((item.value - value).GetAbs())) )); }
static public bool IsBoundAround(this float item, FloatVariance variance) { return(item.IsBoundAround(variance.value, variance.radius)); }
static public float ConvertFromPercentToVariance(this float item, FloatVariance variance) { return(item.ConvertFromPercentToVariance(variance.value, variance.radius)); }
static public float ConvertFromVarianceToVariance(this float item, FloatVariance src, FloatVariance dst) { return(item.ConvertFromVarianceToVariance(src.value, src.radius, dst.value, dst.radius)); }
static public float ConvertFromVarianceToOffset(this float item, FloatVariance variance) { return(item.ConvertFromVarianceToOffset(variance.value, variance.radius)); }
static public FloatRange GetRange(this FloatVariance item) { return(new FloatRange(item.GetBoundA(), item.GetBoundB())); }
static public float GetWidth(this FloatVariance item) { return((float)(item.radius * 2)); }
static public float GetBoundB(this FloatVariance item) { return((float)(item.value + item.radius)); }
public float GetVariance(FloatVariance variance) { return(GetVariance(variance.value, variance.radius)); }