Esempio n. 1
0
        public virtual float Distance(UnitPosition another)
        {
            float dx = x - another.x;
            float dy = y - another.y;
            float dz = z - another.z;

            return((float)Math.Sqrt(dx * dx + dy * dy + dz * dz));
        }
Esempio n. 2
0
 protected bool Equals(UnitPosition other)
 {
     return(x.Equals(other.x) && y.Equals(other.y) && z.Equals(other.z) && yaw.Equals(other.yaw) && pitch.Equals(other.pitch) &&
            cylinderVolR.Equals(other.cylinderVolR) && cylinderVolH.Equals(other.cylinderVolH));
 }
Esempio n. 3
0
 protected bool Equals(UnitPosition other)
 {
     return(x.Equals(other.x) && y.Equals(other.y) && z.Equals(other.z) && yaw.Equals(other.yaw) && pitch.Equals(other.pitch));
 }