public void Add(WTuple <t1, t2, t3> item) { if (!ContainsKey(item.Item1)) { items.Add(item); } }
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); }
public WTuple(WTuple <t1, t2, t3> wtuple) { this.Item_1 = wtuple.Item1; this.Item_2 = wtuple.Item2; this.Item_3 = wtuple.Item3; }
void Set(int index, WTuple <t1, t2, t3> value) { items[index].Item2 = value.Item2; items[index].Item3 = value.Item3; }
public int Compare(WTuple <Vector2, Point, int> x, WTuple <Vector2, Point, int> y) { return(x.Item3.CompareTo(y.Item3)); }