rotmat_from_rotaxis¶
- pycraf.geometry.rotmat_from_rotaxis(rotax_x, rotax_y, rotax_z, angle)[source] [edit on github]¶
Construct rotation matrix from cartesian rotation axis and angle.
- Parameters
- Returns
- R
array
Rotation matrix [no units!]
- R
Notes
Broadcasting is supported. The rotation axis vector will be normalized in the function (otherwise it’s magnitude would change the effective rotation angle).