First off, let me say although math is a part of my job and I am interested in it, I am not very good at it. I program Coordinate measuring machines that use X,Y,Z points with I,J,K vectors. The machine automatically calculates the vectors for me. Sometimes there is a need to edit the vectors. In a 2 dimensional (x-y plane) circle, if I approach the circle from 0 degrees, I get IJK vectors of 1,0,0. Approaching from 45 degrees give me IJK vectors of .70711,.70711,0. If I approach the circle from 90 degrees, I get an IJK vector of 0,1,0. I found out that for 2d circles, I can use the following:
I vector=COS(RADIANS(angle))
J vector=COS(RADIANS(90-angle))
K vector= 0
I need to know how to invert the process to get the angle from the
vectors.
In a 3D sphere, if I approach from 45 degrees in the X-Y plane and 45 degrees in the Z, I get an IJK vector of .57735,.57735,.57735.
Per the machines software help file: "the software will normalize the vector, making its length one unit. This vector is used for probe compensation." Hence the 3x by 45 degrees turning into a solid row of .57735's instead of .70711's.
My 2nd question is how can I get the angles if I have the 3D IJK vectors and how do I invert the process to get the 3D vectors from angles.
I understand ½ of the 2D part of my problem but I am totally lost on how to do anything for 3D spheres. Your assistance would be greatly appreciated. Thanks in advance.
I vector=COS(RADIANS(angle))
J vector=COS(RADIANS(90-angle))
K vector= 0
I need to know how to invert the process to get the angle from the
vectors.
In a 3D sphere, if I approach from 45 degrees in the X-Y plane and 45 degrees in the Z, I get an IJK vector of .57735,.57735,.57735.
Per the machines software help file: "the software will normalize the vector, making its length one unit. This vector is used for probe compensation." Hence the 3x by 45 degrees turning into a solid row of .57735's instead of .70711's.
My 2nd question is how can I get the angles if I have the 3D IJK vectors and how do I invert the process to get the 3D vectors from angles.
I understand ½ of the 2D part of my problem but I am totally lost on how to do anything for 3D spheres. Your assistance would be greatly appreciated. Thanks in advance.