Esempio n. 1
0
        public override bool Equals(object o)
        {
            if (this.GetType() != o.GetType())
            {
                return(false);
            }
            else
            {
                VectorInt3 v = (VectorInt3)o;

                return(this.x == v.x && this.y == v.y && this.z == v.z);
            }
        }
Esempio n. 2
0
 public static int Manhattan(VectorInt3 v1, VectorInt3 v2)
 {
     return(Mathf.Abs(v1.x - v2.x) + Mathf.Abs(v1.y - v2.y) + Mathf.Abs(v1.z - v2.z));
 }