gstools.tools.matrix_rotate

gstools.tools.matrix_rotate(dim, angles)[source]

Create a matrix to rotate points to the target coordinate-system.

Parameters:
  • dim (int) – spatial dimension

  • angles (float or list) – the rotation angles of the target coordinate-system

Returns:

Rotation matrix.

Return type:

numpy.ndarray