Skip to content

Commit

Permalink
added crossMatInv
Browse files Browse the repository at this point in the history
  • Loading branch information
FraCpl committed Mar 14, 2024
1 parent 6f0fe3d commit dc3b8cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Quaternions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Compute the cross product matrix of a vector ```v```.
"""
crossMat(v::Vector) = [0 -v[3] v[2]; v[3] 0 -v[1]; -v[2] v[1] 0]

export crossMatInv
crossMatInv(M::Matrix) = [-M[2,3]; M[1, 3]; -M[1, 2]]

export q_multiply, q_fromAxes, q_random, q_transformVector,
q_transpose, q_fromDcm, q_derivative, q_multiplyn,
q_fromAxisAngle, q_toAxes, q_toDcm, q_inverse, q_build,
Expand Down

0 comments on commit dc3b8cc

Please sign in to comment.