rotation_matrix_from_vectors¶
- rubin_sim.utils.rotation_matrix_from_vectors(v1, v2)¶
Given two vectors v1,v2 calculate the rotation matrix for v1->v2 using the axis-angle approach
@param [in] v1, v2 are two Cartesian unit vectors (in three dimensions)
@param [out] rot is the rotation matrix that rotates from one to the other