math_rot_transform | R Documentation |
transforms a given vector by a given rotation matrix using matirx multiplication
math_rot_transform(x, rot_matrix)
x |
vector or matrix containing the coordinates |
rot_matrix |
2D or 3D rotation matrix |
rot_matrix
%*%x
https://en.wikipedia.org/wiki/Rotation_matrix
Returns 3D rotation matrix for given axis and angle.
Florian Wagner florian.wagner@wagnius.ch
rot_matrix <- math_rot_matrix2d(pi/3)
p <- cbind(c(1,0), c(0,1), c(1,1))
p
math_rot_transform(p,rot_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.