m3sh.linalg.
rotation_mat#
- rotation_mat(u, v, axis=None)#
Rotation matrix.
Rotation matrix from two vectors and rotation axis.
- Parameters:
- u, vndarray, shape (3,)
Non-zero vectors in 3-space.
- axisndarray, shape (3,), optional
Unit length vector in 3-space not contained in the span of u and v.
- Returns:
- Rndarray, shape (3, 3)
Rotation matrix.