Example #1
0
        public int CompareTo(Line2f other)
        {
            int cmp = A.CompareTo(other.A);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(B.CompareTo(other.B));
        }
Example #2
0
        public int CompareTo(Ray2f other)
        {
            int cmp = Origin.CompareTo(other.Origin);

            if (cmp == 0)
            {
                return(Direction.CompareTo(other.Direction));
            }
            return(cmp);
        }
Example #3
0
        public int CompareTo(Bezier2f 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));
        }