mchammer.rotation_matrix_arbitrary_axis
- mchammer.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 (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
3x3array representing a rotation matrix.- Return type:
ndarray