t2r
Rotational submatrix
R = T2R(T) is the orthonormal rotation matrix component of homogeneous transformation matrix T. Works for T in SE(2) or SE(3)
- If
Tis 4×4, thenRis 3×3. - If
Tis 3×3, thenRis 2×2.
Notes
- For a homogeneous transform sequence (K×K× N) returns a rotation matrix sequence (K-1×K-1×N).
- The validity of rotational part is not checked