Example #1
0
        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);
        }
Example #2
0
 internal bool isEqual(KeyVector2 v)
 {
     return(this.x == v.x && this.y == v.y);
 }