math_rot_matrix3d | R Documentation |
Calculates a 3D rotation matrix for a given rotation axis x
(unit vector) and an angle angle
. The rotation will be applied by the right hand rule.
math_rot_matrix3d(x, angle)
x |
unit vector c(x1,x2,x3) defining the rotation axis |
angle |
in radiant |
https://en.wikipedia.org/wiki/Rotation_matrix https://de.wikipedia.org/wiki/Drehmatrix#Drehmatrizen_des_Raumes_%E2%84%9D%C2%B3
Returns 3D rotation matrix for given axis (unit vector) and angle.
Florian Wagner florian.wagner@wagnius.ch
math_rot_matrix3d(matrix(c(0,0,1)),0.5)
matrix(c(1,2,3))|>
math_unit_vector()|>
math_rot_matrix3d(-pi)
math_rot_matrix3d(matrix(c(0,0,1)),0.5)|>
det()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.