static public DecimalVariance GetExpanded(this DecimalVariance item, decimal value) { return(new DecimalVariance( item.value, item.radius.Max((decimal)((item.value - value).GetAbs())) )); }
static public bool IsBoundAround(this decimal item, DecimalVariance variance) { return(item.IsBoundAround(variance.value, variance.radius)); }
static public decimal GetWidth(this DecimalVariance item) { return((decimal)(item.radius * 2)); }
static public DecimalRange GetRange(this DecimalVariance item) { return(new DecimalRange(item.GetBoundA(), item.GetBoundB())); }
static public decimal GetBoundB(this DecimalVariance item) { return((decimal)(item.value + item.radius)); }