コード例 #1
0
ファイル: Rect3D.cs プロジェクト: PlumpMath/Cross.Drawing
 /// <summary>
 /// Return the result of the union of rect and point.
 /// </summary>
 /// <param name="rect">Rectangle.</param>
 /// <param name="point">Point.</param>
 /// <returns>The result of the union of rect and point.</returns>
 public static Rect3D Union(Rect3D rect, Point3D point)
 {
     rect.Union(new Rect3D(point, point));
     return(rect);
 }
コード例 #2
0
ファイル: Rect3D.cs プロジェクト: kevincwq/Cross.Drawing
 /// <summary>
 /// Return the result of the union of rect and point.
 /// </summary>
 /// <param name="rect">Rectangle.</param>
 /// <param name="point">Point.</param>
 /// <returns>The result of the union of rect and point.</returns>
 public static Rect3D Union(Rect3D rect, Point3D point)
 {
     rect.Union(new Rect3D(point, point));
     return rect;
 }
コード例 #3
0
ファイル: Rect3D.cs プロジェクト: PlumpMath/Cross.Drawing
 /// <summary>
 /// Return the result of the union of rect1 and rect2.
 /// </summary>
 /// <param name="rect1">First rectangle.</param>
 /// <param name="rect2">Second rectangle.</param>
 /// <returns>The result of the union of the two rectangles.</returns>
 public static Rect3D Union(Rect3D rect1, Rect3D rect2)
 {
     rect1.Union(rect2);
     return(rect1);
 }
コード例 #4
0
ファイル: Rect3D.cs プロジェクト: kevincwq/Cross.Drawing
 /// <summary>
 /// Return the result of the union of rect1 and rect2.
 /// </summary>
 /// <param name="rect1">First rectangle.</param>
 /// <param name="rect2">Second rectangle.</param>
 /// <returns>The result of the union of the two rectangles.</returns>
 public static Rect3D Union(Rect3D rect1, Rect3D rect2)
 {
     rect1.Union(rect2);
     return rect1;
 }