public bool addConn(KeyVector2 v) { if (v.x == v.y) { return(false); } foreach (KeyVector2 item in connList) { if (item.isEqual(v)) { return(false); } } connList.Add(v); return(true); }
internal bool isEqual(KeyVector2 v) { return(this.x == v.x && this.y == v.y); }