Exemplo n.º 1
0
        public static BoundingBox <T> ToBoundingBox <T>(this IEnumerator <Point <T> > e) where T : IConvertible, IComparable <T>, IEquatable <T>
        {
            if (!e.MoveNext())
            {
                return(null);
            }
            var bb = new BoundingBox <T>(e.Current);

            while (e.MoveNext())
            {
                RectangleExt.ExpandToInclude <BoundingBox <T>, Point <T>, T>(bb, e.Current);
            }
            return(bb);
        }
Exemplo n.º 2
0
 public static bool ExpandToInclude <T>(this BoundingBox <T> self, IEnumerable <Point <T> > points) where T : IConvertible, IComparable <T>, IEquatable <T>
 {
     return(RectangleExt.ExpandToInclude <BoundingBox <T>, Point <T>, T>(self, points));
 }