I posted similar question before. But I am yet to be clarified. Suppose I know a vector F which is defined as (xr - x) ,(yr -y), (zr -z). This vector is with angle theta with another vector F1{ (x1 -x), (y1 -y), (z1-z) }. This has been shown in the following figure. Now I have aonther vector F2 defined by ((x2 -x), (y2 -y), z2-z)). which is perpendicular to F1. I need to find (x2, y2, z2). I did as follows:
Code :F2 (x2, y2, z2) | * | * F (xr, yr, zr) | * theta is angle between F and F1 | * |*_______ F1(x1, y1, z1) (x, y,z)
I first normalized F. So F/|F|,
Then I multipled this unit normal by sin(theta).
Now I tried to find the magnitude and I did like this |F|sin(theta).
Now (x2 , y2, z2) for vector F2 is:
x2 = x + ( Fx/|F|)*sin(theta)* |F|sin(theta);
y2 = y + ( Fy/|F|)*sin(theta)* |F|sin(theta);
z2 = z + ( Fz/|F|)*sin(theta)* |F|sin(theta);
Am I right? Could any one tell me? Because I am not getting the correct answer.
Thank you all in advance.



