d*z 发帖数: 150 | 1
some
1.Calculate the projection of (x,y,z) in the axis (l*a,l*b,l*c).
which satifies:
(a,b,c).(l*a-x,l*b-y,l*c-y)=0
so
l= (ax+by+cz)/(a^2+b^2+c^2).
2.
(a,b,c).(l*a-x',l*b-y',l*c-z')=0
(l*a-x')^2+(l*b-y')^2+(l*c-z')^2 = (l*a-x)^2+(l*b-y)^2+(l*c-z)^2
(l*a-x',l*b-y',l*c-z').(l*a-x,l*b-x,l*c-x)=cos(alpha).
Solving the equation to get the solution(There's should be two result). |
|