Closed hyrodium closed 2 years ago
Here's a sample script:
julia> using Rotations julia> RotXYZ(rand(3,3)) 3×3 RotXYZ{Float64} with indices SOneTo(3)×SOneTo(3)(-0.764454, 0.0656994, 0.836279): 0.668783 -0.740553 0.0656521 0.505202 0.517469 0.69065 -0.545436 -0.428727 0.720203 julia> Angle2d(rand(2,2)) ERROR: MethodError: Angle2d(::Matrix{Float64}) is ambiguous. Candidates: (::Type{SA})(a::AbstractArray) where SA<:StaticArrays.StaticArray in StaticArrays at /home/hyrodium/.julia/packages/StaticArrays/deP1N/src/convert.jl:7 Angle2d(theta) in Rotations at /home/hyrodium/.julia/dev/Rotations/src/core_types.jl:158 Possible fix, define Angle2d(::AbstractArray) Stacktrace: [1] top-level scope @ REPL[4]:1
Here's a sample script: