Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
FraCpl committed Jan 15, 2024
1 parent cd26d12 commit 6502670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/q.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ q_fromAxisAngle(u, θ) = [cos(0.5θ); sin(0.5θ)*normalize(u)]

q_fromAxisAngle(idx::Int, θ) = q_fromAxisAngle(Float64.([idx==1; idx==2; idx==3]), θ)

function q_toAxes(q_BA)
function q_toAxes(q_AB)
q_BA = q_transpose(q_AB)
xB_A = q_transformVector(q_BA,[1.0; 0.0; 0.0])
yB_A = q_transformVector(q_BA,[0.0; 1.0; 0.0])
zB_A = q_transformVector(q_BA,[0.0; 0.0; 1.0])
Expand Down

0 comments on commit 6502670

Please sign in to comment.