Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Rotation matrix
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Determining the angle==== To find the angle of a rotation, once the axis of the rotation is known, select a vector {{math|'''v'''}} perpendicular to the axis. Then the angle of the rotation is the angle between {{math|'''v'''}} and {{math|''R'''''v'''}}. A more direct method, however, is to simply calculate the [[Trace (linear algebra)|'''trace''']]: the sum of the diagonal elements of the rotation matrix. Care should be taken to select the right sign for the angle {{mvar|ΞΈ}} to match the chosen axis: :<math>\operatorname{tr} (R) = 1 + 2\cos\theta ,</math> from which follows that the angle's absolute value is :<math>|\theta| = \arccos\left(\frac{\operatorname{tr}(R) - 1}{2}\right).</math> For the rotation axis <math>\mathbf{n}=(n_1,n_2,n_3)</math>, you can get the correct angle<ref>{{cite arXiv|last=Kuo Kan|first=Liang|date=6 October 2018|title=Efficient conversion from rotating matrix to rotation axis and angle by extending Rodrigues' formula|eprint=1810.02999|class=cs.CG}}</ref> from <math>\left\{\begin{matrix} \cos \theta&=&\dfrac{\operatorname{tr}(R) - 1}{2}\\ \sin \theta&=&-\dfrac{\operatorname{tr}(K_n R)}{2} \end{matrix}\right. </math> where <math>K_n=\begin{bmatrix} 0 & -n_3 & n_2\\ n_3 & 0 & -n_1\\ -n_2 & n_1 & 0\\ \end{bmatrix} </math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)