コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static Interval3d Union(Interval3d a, Interval3d b)
 {
     a.X = Interval1d.Union(a.X, b.X);
     a.Y = Interval1d.Union(a.Y, b.Y);
     a.Z = Interval1d.Union(a.Z, b.Z);
     return(a);
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static Interval2d Union(Interval2d a, Interval2d b)
 {
     a.X = Interval1d.Union(a.X, b.X);
     a.Y = Interval1d.Union(a.Y, b.Y);
     return(a);
 }