rotation_matrix

chemcoord.utilities.rotation_matrix(axis, angle)[source]

Returns the rotation matrix.

This function returns a matrix for the counterclockwise rotation around the given axis. The Input angle is in radians.

Parameters:
  • axis (vector) –
  • angle (float) –
Returns:

Return type:

Rotation matrix (np.array)