I know this is a mathematics question but I wasn't quite sure where to post... so here it is.
I'm trying to correct my sprite rendering code for my HTML5 canvas 2.5D landscape renderer.
I need to determine the angle between the camera (the player's viewpoint) and any sprites that might potentially appear within view.
This quick and dirty xfig diagram might help to explain what I need to find (the angle a):

Given that I know the angle of the player's (camera) viewing direction and the x and z values of both the camera and each sprite, how do I calculate angle a?
Maths was never my strong point; somewhat surprised I've got as far as I have.
