chemcoord.xyz_functions.get_rotation_matrix

chemcoord.xyz_functions.get_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 (Sequence[float]) – The axis to rotate around.

  • angle (float) – The angle in radians.

Returns:

The rotation matrix as a numpy array.

Return type:

ndarray[tuple[int, …], dtype[float64]]