Angle, which way to rotate to
===

For a game i'm trying to calculate the angle between where i'm looking at and the position of another object in the scene. I got the angle by using the following code:

    Vec3 out_sub;
    Math.Subtract(pEnt->vOrigin, pLocalEnt->vOrigin, out_sub);
    float angle = Math.DotProductAcos(out_sub, vec3LookAt);

This code does give me the angle between where im looking at and an object in the scene. But there's a small problem.

When i don't directly look at the object but slightly to the left of it, then it says i have to rotate 10 degrees in order to directly look at the object. Which is perfectly correct.

But, when i look slightly to the right of the object, it also says i have to rotate 10 degrees in order to look directly to the object.

The problem here is, the i have no way to tell which way to rotate to. I only know its 10 degrees. But do i have to rotate to the left or right? That's what i need to find out.

How can i figure that out?