View source: R/mathematicalfunctions.R
calc_rot | R Documentation |
A 3x3 rotation matrix constructed by projecting the new axes onto the original system. Likely results in rotation about all axes.
calc_rot(z_vector, x_vector)
z_vector |
a 1x3 vector representing the direction for the desired z axis of the new frame of reference. Frame of reference: VRP |
x_vector |
a 1x3 vector representing the direction for the desired x axis of the new frame of reference. Frame of reference: VRP |
a 3x3 matrix representing the rotation matrix that transforms between VRP frame and object frame
Christina Harvey
library(AvInertia) z_vector = c(0,0,1) x_vector = c(-1,0,0) # should return matrix [[-1,0,0];[0,-1,0];[0,0,1]] calc_rot(z_vector, x_vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.