View source: R/renderable_transform.R
| rotation.matrix | R Documentation |
Build a 4x4 rotation matrix (Rodrigues formula).
rotation.matrix(angle_rad, x, y, z)
angle_rad |
numeric scalar, the rotation angle in radians. |
x |
numeric, x component of the rotation axis. |
y |
numeric, y component of the rotation axis. |
z |
numeric, z component of the rotation axis. |
4x4 numeric rotation matrix in homogeneous coordinates. Matches the
convention of rotate3d / rotationMatrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.