Esempio n. 1
0
        public int CompareTo(LineSegment3f other)
        {
            int cmp = A.CompareTo(other.A);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(B.CompareTo(other.B));
        }
Esempio n. 2
0
        public int CompareTo(Spheref other)
        {
            int cmp = Center.CompareTo(other.Center);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(Radius.CompareTo(other.Radius));
        }
Esempio n. 3
0
        public int CompareTo(AABoxf other)
        {
            int cmp = Min.CompareTo(other.Min);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(Max.CompareTo(other.Max));
        }
Esempio n. 4
0
        public int CompareTo(Ray3f other)
        {
            int cmp = Origin.CompareTo(other.Origin);

            if (cmp == 0)
            {
                return(Direction.CompareTo(other.Direction));
            }
            return(cmp);
        }
Esempio n. 5
0
        public int CompareTo(Bezier3f other)
        {
            int cmp = A.CompareTo(other.A);

            if (cmp != 0)
            {
                return(cmp);
            }
            cmp = B.CompareTo(other.B);
            if (cmp != 0)
            {
                return(cmp);
            }
            return(C.CompareTo(other.C));
        }