ogs5py.tools.tools.rotation_matrix

ogs5py.tools.tools.rotation_matrix(vector, angle)[source]

Create a rotation matrix.

For rotation around a given vector with a given angle.

Parameters:
  • vector (ndarray) – array containing the vector for ratation axis

  • angle (float) – rotation angle given in radial length

Returns:

result – matrix to be used for matrix multiplication with vectors to be rotated.

Return type:

ndarray