I want to calculate the angle between 2 vectors V = [Vx Vy Vz] and B = [Bx By Bz]. is this formula correct?
V = [Vx Vy Vz]
B = [Bx By Bz]
VdotB = (Vx*Bx + Vy*By
Based on this link, this seems to be the most stable solution:
atan2(norm(cross(a,b)), dot(a,b))