示例#1
0
 public void Add(WTuple <t1, t2, t3> item)
 {
     if (!ContainsKey(item.Item1))
     {
         items.Add(item);
     }
 }
示例#2
0
        public static WTuple <Vector2, Point, int> GetLowestValue(this List <WTuple <Vector2, Point, int> > tuple)
        {
            var temp    = new WTuple <Vector2, Point, int>(tuple.First());
            int counter = int.MaxValue;

            foreach (var tup in tuple)
            {
                if (tup.Item3 <= counter)
                {
                    counter = tup.Item3;
                    temp    = new WTuple <Vector2, Point, int>(tup);
                }
            }

            return(temp);
        }
示例#3
0
 public WTuple(WTuple <t1, t2, t3> wtuple)
 {
     this.Item_1 = wtuple.Item1;
     this.Item_2 = wtuple.Item2;
     this.Item_3 = wtuple.Item3;
 }
示例#4
0
 void Set(int index, WTuple <t1, t2, t3> value)
 {
     items[index].Item2 = value.Item2;
     items[index].Item3 = value.Item3;
 }
示例#5
0
 public int Compare(WTuple <Vector2, Point, int> x, WTuple <Vector2, Point, int> y)
 {
     return(x.Item3.CompareTo(y.Item3));
 }