Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Conversion between quaternions and Euler angles: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 20:44, 19 December 2022
edit
Lambiam
(
talk
|
contribs
)
Autopatrolled
,
Extended confirmed users
,
Page movers
65,058
edits
Undid revision 1120752602 by
R0uge
(
talk
): meaningless
Tags
:
Undo
Reverted
← Previous edit
Revision as of 18:23, 5 January 2023
edit
undo
Rfspadaro
(
talk
|
contribs
)
2
edits
→
Source code
Next edit →
Line 240:
// pitch (y-axis rotation)
double sinp = std::sqrt(1 + 2 * (q.w * q.
x
y
- q.
y
x
* q.z));
double cosp = std::sqrt(1 - 2 * (q.w * q.
x
y
- q.
y
x
* q.z));
angles.pitch = 2 * std::atan2(sinp, cosp) - M_PI / 2;