
Last chance! 50% off unlimited learning
Sale ends in
Generate rotations in matrix format using Rodrigues' formula or quaternions.
genR(r, S = NULL, space = "SO3")
vector of angles.
central orientation.
indicates the desired representation: rotation matrix "SO3" or quaternions "Q4."
A
Given a vector
For the same vector and angle a quaternion is formed according to
# NOT RUN {
r <- rvmises(20, kappa = 0.01)
Rs <- genR(r, space = "SO3")
Qs <- genR(r, space = "Q4")
# }
Run the code above in your browser using DataLab