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