resqpy.olio.vector_utilities.rotation_matrix_3d_vector

resqpy.olio.vector_utilities.rotation_matrix_3d_vector(v)[source]

Returns a rotation matrix which will rotate vector v to the vertical (z) axis.

Note

the returned matrix will map a positive z axis vector onto v