ogs5py.tools.tools.rotate_points

ogs5py.tools.tools.rotate_points(points, angle, rotation_axis=(0.0, 0.0, 1.0), rotation_point=(0.0, 0.0, 0.0))[source]

Rotate points around a given rotation point and axis with a given angle.

Parameters
  • points (ndarray) – Array with all points postions.

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

  • rotation_axis (array_like, optional) – Array containing the vector for ratation axis. Default: (0,0,1)

  • rotation_point (array_like, optional) – Array containing the vector for ratation base point. Default: (0,0,0)

Returns

new_array – rotated array

Return type

ndarray