View source: R/add_plane_uv_mesh.R
generate_rotation_matrix_from_direction | R Documentation |
Internal function to generate a rotation matrix that aligns the Y-axis with a given direction vector. It uses the Rodrigues' rotation formula.
generate_rotation_matrix_from_direction(
direction = c(0, 1, 0),
up = c(0, 1, 0)
)
direction |
Default |
up |
Default |
A 3x3 rotation matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.