aimbot adventure continue
Today i compute my main trouble in aimbot. t is wrong calculate angles.
and look at this picture:

imagine the projection of the game on this circle.
in the imaginary part of the second of this circle, calculation it is not true.
form -90 to 0 it calculated wrong Y angle.
look at this:
Here is my CalcAngle source code:
Code:
void CalcAngle(Vector &src, Vector &dst, Vector &angles, int rcs)
{
double delta[3] = { (src.x - dst.x), (src.y - dst.y), (src.z - dst.z) };
double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
angles.x = (float)(asinf(delta[2] / hyp) * 57.295779513082f) - MyPlayer.Punch.x * 2.0f * rcs;
angles.y = (float)(atanf(delta[1] / delta[0]) * 57.295779513082f) - MyPlayer.Punch.y * 2.0f * rcs;
angles.z = 0;
if (delta[0] >= 0.0) { angles.y += 180.0f; }
}
How can i fix it?