Ejemplo n.º 1
0
        public static void Normalize <Rect, T>(this Rect r)
            where Rect : IRectangle3Base <T>
            where T : IComparable <T>
        {
            T z1 = r.X1, z2 = r.X2;

            if (r.Z2.CompareTo(r.Z1) < 0)
            {
                r.SetZRange(z2, z1);
            }
            RectangleExt.Normalize <Rect, T>(r);
        }
Ejemplo n.º 2
0
 public static void Normalize <T>(this BoundingBox <T> self) where T : IConvertible, IComparable <T>, IEquatable <T>
 {
     RectangleExt.Normalize <BoundingBox <T>, T>(self);
 }