generate_rotation_matrix_from_direction {rayvertex} | R Documentation |
Generate Rotation Matrix from Direction
Description
Internal function to generate a rotation matrix that aligns the Y-axis with a given direction vector. It uses the Rodrigues' rotation formula.
Usage
generate_rotation_matrix_from_direction(
direction = c(0, 1, 0),
up = c(0, 1, 0)
)
Arguments
direction |
Default |
up |
Default |
Value
A 3x3 rotation matrix.
[Package rayvertex version 0.12.0 Index]