Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quaternion <-> Euler angle converting back and forth does not return original value #13

Closed
DJBen opened this issue Jun 16, 2017 · 1 comment

Comments

@DJBen
Copy link

DJBen commented Jun 16, 2017

Insert the following testing code to testEulerConversion test case and observe it to fail

let quat2 = Quaternion(pitch: 0.12334412, yaw: 1.3521468, roll: -0.53435323)
let (pitch, yaw, roll) = quat2.toPitchYawRoll()
let quat2Ref = Quaternion(pitch: pitch, yaw: yaw, roll: roll)
XCTAssertTrue(quat2 ~= quat2Ref)
@nicklockwood
Copy link
Owner

Fixed in 0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants