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); }
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)); }