QAngle CalcAngle(const Vector& src, const Vector& dst)
{
QAngle vAngle;
Vector delta((src.x - dst.x), (src.y - dst.y), (src.z - dst.z));
double hyp = fastsqrt(delta.x*delta.x + delta.y*delta.y);
vAngle.pitch = float(atanf(float(delta.z / hyp)) * 57.295779513082f);
vAngle.yaw = float(atanf(float(delta.y / delta.x)) * 57.295779513082f);
vAngle.roll = 0.0f;
if (delta.x >= 0.0)
vAngle.yaw += 180.0f;
return vAngle;
}