Пример #1
0
        Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            AxialHexCoord other = (AxialHexCoord)obj;

            return((this.q == other.q) && (this.r == other.r));
        }
Пример #2
0
 FloatAxial(AxialHexCoord axial)
 {
     this.q = (float)axial.q;
     this.r = (float)axial.r;
 }