Checks \(R^\top R = I\) and \(\det R = 1\) within tol.
Usage
is_rotation_matrix(x, tol = 1e-06)
Arguments
- x
A numeric matrix or robot_rotation.
- tol
Absolute tolerance.
Examples
is_rotation_matrix(diag(3))
#> [1] TRUE
is_rotation_matrix(diag(c(1, 1, -1)))
#> [1] FALSE