-
Notifications
You must be signed in to change notification settings - Fork 43
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
exp(Rotations.UnitQuaternion(0, π, 0, 0)) gives incorrect result #128
Labels
Comments
We need to introduce skew-symmetric matrix type(#30) to solve this issue cleanly, but we can do the following for now: julia> exp(Rotations.UnitQuaternion(0, π, 0, 0, false))
3×3 UnitQuaternion{Float64} with indices SOneTo(3)×SOneTo(3)(-1.0, 1.22465e-16, 0.0, 0.0):
1.0 0.0 0.0
0.0 1.0 2.44929e-16
0.0 -2.44929e-16 1.0 The |
julia> using Rotations
julia> exp(RotationVecGenerator(π,0,0))
3×3 RotationVec{Float64} with indices SOneTo(3)×SOneTo(3)(3.14159, 0.0, 0.0):
1.0 0.0 0.0
0.0 -1.0 -1.22465e-16
0.0 1.22465e-16 -1.0
julia> exp(RotationVecGenerator(2π,0,0))
3×3 RotationVec{Float64} with indices SOneTo(3)×SOneTo(3)(6.28319, 0.0, 0.0):
1.0 0.0 0.0
0.0 1.0 2.44929e-16
0.0 -2.44929e-16 1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect the result
UnitQuaternion(-1.0, 0, 0, 0)
.This issue might end up being superseded by a fix to #30.
The text was updated successfully, but these errors were encountered: