コード例 #1
0
 public bool SetToIntersectionWith(MinMaxDouble range)
 {
     if (Overlaps(range))
     {
         Min = Math.Max(Min, range.Min);
         Max = Math.Min(Max, range.Max);
         return(true);
     }
     return(false);
 }
コード例 #2
0
 static public bool Overlaps(MinMaxDouble range1, MinMaxDouble range2)
 {
     return(range1.Overlaps(range2));
 }
コード例 #3
0
 public bool Includes(MinMaxDouble range)
 {
     return(Max >= range.Max && Min <= range.Min);
 }
コード例 #4
0
 public bool Overlaps(MinMaxDouble range)
 {
     return(Max >= range.Min && Min <= range.Max);
 }
コード例 #5
0
 public MinMaxDouble(MinMaxDouble source)
 {
     Min = source.Min;
     Max = source.Max;
 }