Find angle between two vectors relative to a normal

102 Views Asked by At

I'm making a simulation which requires random movement and sometimes requires homing to some points. I do the movement through random angles and need the same principle for homing towards a point. However I don't know how to find the angle between two vectors A and B with B having a normal going downwards. Something like this.
$\hskip 2 in$enter image description here