Suppose I have two 3D triangles before & after a single rotation around an unknown axis. How would I go about finding this axis?
Asked
Active
Viewed 495 times
1 Answers
4
Take a point $P$ and it's rotated point $P'$.
Find the plan that runs through the middle between them $C = \frac{P+P'}{2}$ and is perpendicular to the line connecting them.
Do this for all 3 of them and find the line of the planes' intersection. That will be the rotation axis.
If all mid-planes are coplanar then you can use the planes of the triangles themselves.
To get the angle you can take a $P$ and $P'$ again and project them onto the axis.
Take a point $A$ on the axis and the direction $v$ of the axis. The projected point is $P_p=A+\frac{v \cdot (P-A)}{v\cdot v} v$. And then the angle is $acos(\frac{dot(P-P_p, P'-P_p)}{|P-P_p|* |P'-P_p|})$

ratchet freak
- 5,950
- 16
- 28
Additionally, how can I get the angle of rotation from this?
– ginsunuva Mar 07 '17 at 11:30