View source: R/mathematicalfunctions.R
rotx | R Documentation |
A 3x3 rotation matrix allowing rotation about the x-axis. Constructed using a cosine rotation matrix where the rotation angle in degrees is measured counterclockwise allowing positive rotation under the right hand rule.
rotx(angle)
angle |
a scalar representing the angle to rotate (degrees) |
a 3x3 matrix representing the rotation about the x-axis by the given angle
Christina Harvey
library(AvInertia) angle = 90 # should return matrix [[1,0,0];[0,0,1];[0,1,0]] rotx(angle)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.