Hi, I have a question, I have a table with 12 reference points
if true% POINT X Y Z
1 0 0 02 70.5 0 03 141 0 04 141 0 141.55 70.5 0 141.56 0 0 141.57 0 137.5 08 70.5 137.5 09 141 140 010 141 141.5 141.511 70.5 139 141.512 0 141.5 141.5end
The segment 1 is defined by the point 1 and point 2 and the segment 2 is defined by the point 1 and point 7. I am able to calculate the angle with the following rotine,
if true % angle_x1_x13 = atan2(norm(cross(v1,v2)),dot(v1,v2));
anglout = radtodeg(angle_x1_x13); end
The result is ~90ยบ and this result is correct if I think in xy plan, but I need to calculate the angle to yz plan and xz plan. Anyone help me?
Best Answer