scipp.spatial.rotation_from_rotvec

scipp.spatial.rotation_from_rotvec

scipp.spatial.rotation_from_rotvec(*, value, unit)

Creates a rotation transformation from a rotation vector.

This requires scipy to be installed, as is wraps Rotation.from_rotvec() from scipy.spatial.transform.

A rotation vector is a 3 dimensional vector which is co-directional to the axis of rotation and whose norm gives the angle of rotation.

Parameters
Return type

scipp._scipp.core.Variable