Exemplo 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));
        }
Exemplo 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));
 }
Exemplo 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));
 }