grogupy._core.RotM
- grogupy._core.RotM(theta: float, u: ndarray[Any, dtype[_ScalarType_co]], eps: float = 1e-10) ndarray[Any, dtype[_ScalarType_co]][source]
Definition of rotation matrix with angle theta around direction u.
Parameters
- theta: float
The angle of rotation
- u: NDArray
The rotation axis
- eps: float, optional
Cutoff for small elements in the resulting matrix. Defaults to 1e-10
Returns
- NDArray
The rotation matrix