Esempio n. 1
0
        void sort(List <StackItem> items)
        {
            int sortByTAsc(StackItem l, StackItem r)
            {
                IntersectionItem xs_l = (IntersectionItem)l;
                IntersectionItem xs_r = (IntersectionItem)r;

                return(xs_l.T.CompareTo(xs_r.T));
            }

            items.Sort(sortByTAsc);
        }
Esempio n. 2
0
 BoolItem get_result(IntersectionItem h, DoubleItem distance)
 {
     return(new BoolItem(h.T < distance.DoubleValue));
 }