Rotations.jl
Rotations.jl copied to clipboard
Julia implementations for different rotation parameterizations
```julia julia> using Rotations julia> r = rand(QuatRotation) 3×3 QuatRotation{Float64} with indices SOneTo(3)×SOneTo(3)(QuaternionF64(0.826859, 0.127988, -0.43058, 0.338415, true)): 0.400152 -0.66986 -0.625432 0.449424 0.738189 -0.503086 0.798684 -0.0797729 0.596439 julia> sqrt(r) 3×3 StaticArrays.SizedMatrix{3,...
Hi, recently I've found a need for scaling rotations described by unit quaternions, by which I mean produce a rotation along the same axis only with a different angle. I've...
See discussions in https://github.com/JuliaGeometry/Rotations.jl/pull/162#issuecomment-1012694956.
As discussed [here](https://github.com/JuliaGeometry/Rotations.jl/pull/219#discussion_r806588736), it seems better to remove `rand(::RotXY)` method etc. Related: https://github.com/JuliaGeometry/Rotations.jl/issues/155
These are TODO for the documentation: - [ ] `Rotations.ErrorMap` and related things (cf. https://github.com/JuliaGeometry/Rotations.jl#the-rotation-error-state-and-linearization) - [ ] Derivation such as `Rotations.jacobian`. - [ ] Fill (TBW) in the docunent...
As discussed in #210, it's better to follow the order of `SVector`. ```julia julia> aa = AngleAxis(2.4, 0, 0, 1) # angle, x, y, z 3×3 AngleAxis{Float64} with indices SOneTo(3)×SOneTo(3)(2.4,...
# The problems ## type conversion On the current `master` branch: ```julia julia> UnitQuaternion(RotX(2π)) 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...
*(originally posted on [this comment](https://github.com/JuliaGeometry/Rotations.jl/pull/175#issuecomment-975114142))* I think we need to distinguish among exported method, non-exported method and internal use method. * exported method * e.g.`RotXYZ`, `nearest_rotation` * These methods should...
To be able to set the orientation of an object in a 3D scene of Makie.jl I use the following code: ``` q0 = Rotations.params(QuatRotation(state.orient)) # returns an SVector in...
This PR adds a second type parameter to angular rotations type (`Angle2d` and all `RotX` etc.). This prevents automatic conversion of the angle to floating-point and the resulting inexactitude when...