scipp.spatial.transform.from_rotvec

scipp.spatial.transform.from_rotvec(rotvec)

Create rotation matrix (or matrices) from rotation vector(s).

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

rotvec (scipp._scipp.core.Variable) – A variable with vector(s) giving rotation axis and angle. Unit must be rad or deg.

Return type

scipp._scipp.core.Variable