View source: R/create_rotation_matrix.R
create_rotation_matrix | R Documentation |
Generates a 3x3 rotation matrix for rotating points in 3D space around the x, y, or z axis by a specified angle in degrees.
create_rotation_matrix(angle_deg, axis)
angle_deg |
Numeric. The rotation angle in degrees. |
axis |
Character. The axis of rotation: "x", "y", or "z". |
A 3x3 numeric matrix representing the rotation.
create_rotation_matrix(90, "z")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.