stk.rotation_matrix_arbitrary_axis

stk.rotation_matrix_arbitrary_axis(angle, axis)[source]

Returns a rotation matrix of angle radians about axis.

Parameters:
  • angle (float) – The size of the rotation in radians.

  • axis (numpy.ndarray) – A 3 element aray which represents a vector. The vector is the axis about which the rotation is carried out. Must be of unit magnitude.

Returns:

A 3x3 array representing a rotation matrix.

Return type:

numpy.ndarray