Skip to contents

Creates a rotmatrix-class object.

Usage

rotmatrix(a)

Arguments

a

A 3 x 3 matrix or 3 x 3 x n array of matrices or an orientation object.

Value

A rotmatrix-class object.

Author

Duncan Murdoch

Examples

x <- rotmatrix(matrix(c(1,0,0, 0,1,0, 0,0,1), 3, 3))
x
#> An object of class "rotmatrix"
#> Slot "x":
#> , , 1
#> 
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> [2,]    0    1    0
#> [3,]    0    0    1
#> 
#>