Create an orientation using vectorized 3x3 matrices
rotvector.Rd
Creates a rotvector-class
object.
Arguments
- m
n x 9 matrix or 9 element vector whose rows are vectorized 3x3 matrices, or an orientation object.
Details
Converts a matrix whose rows are vectorized 3x3 matrices (in column-major form)
into an rotvector-class
object.
Value
A rotvector-class
object.
Examples
x <- rotvector(c(0,1,0,-1,0,0,0,0,1))
x
#> An object of class "rotvector"
#> Slot "x":
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
#> [1,] 0 1 0 -1 0 0 0 0 1
#>
rotmatrix(x)
#> An object of class "rotmatrix"
#> Slot "x":
#> , , 1
#>
#> [,1] [,2] [,3]
#> [1,] 0 -1 0
#> [2,] 1 0 0
#> [3,] 0 0 1
#>
#>