The X angle between two 3D vectors?
问题 I have two 3D vectors called A and B that both only have a 3D position. I know how to find the angle along the unit circle ranging from 0-360 degrees with the atan2 function by doing: EDIT: (my atan2 function made no sense, now it should find the "y-angle" between 2 vectors): toDegrees(atan2(A.x-B.x,A.z-B.z))+180 But that gives me the Y angle between the 2 vectors. I need to find the X angle between them. It has to do with using the x, y and z position values. Not the x and z only, because