Exemplo n.º 1
0
        /// <summary>
        /// Calculate cover of two rectangles
        /// </summary>
        /// <param name="p">first rectangle</param>
        /// <param name="q">second rectangle</param>
        /// <returns>minimal rectangle containing both specified rectangles</returns>
        ///
        public static Rectangle join(Rectangle p, Rectangle q)
        {
            Rectangle res = new Rectangle(p);

            res.join(q);
            return(res);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Calculate cover of two rectangles
 /// </summary>
 /// <param name="p">first rectangle</param>
 /// <param name="q">second rectangle</param>
 /// <returns>minimal rectangle containing both specified rectangles</returns>
 ///
 public static Rectangle join(Rectangle p, Rectangle q)
 {
     Rectangle res = new Rectangle(p);
     res.join(q);
     return res;
 }