Пример #1
0
 static public LongVariance GetExpanded(this LongVariance item, long value)
 {
     return(new LongVariance(
                item.value,
                item.radius.Max((long)((item.value - value).GetAbs()))
                ));
 }
Пример #2
0
 static public bool IsBoundAround(this long item, LongVariance variance)
 {
     return(item.IsBoundAround(variance.value, variance.radius));
 }
Пример #3
0
 static public long GetWidth(this LongVariance item)
 {
     return((long)(item.radius * 2));
 }
Пример #4
0
 static public LongRange GetRange(this LongVariance item)
 {
     return(new LongRange(item.GetBoundA(), item.GetBoundB()));
 }
Пример #5
0
 static public long GetBoundB(this LongVariance item)
 {
     return((long)(item.value + item.radius));
 }