Learn R Programming

orientlib (version 0.10.5)

rotvector: Create an orientation using vectorized 3x3 matrices

Description

Creates a rotvector-class object.

Usage

rotvector(m)

Value

A rotvector-class object.

Arguments

m

n x 9 matrix or 9 element vector whose rows are vectorized 3x3 matrices, or an orientation object.

Author

Duncan Murdoch

Details

Converts a matrix whose rows are vectorized 3x3 matrices (in column-major form) into an rotvector-class object.

See Also

rotvector-class, rotmatrix, eulerzyx, eulerzxz, quaternion, skewvector, skewmatrix

Examples

Run this code
x <- rotvector(c(0,1,0,-1,0,0,0,0,1))
x
rotmatrix(x)

Run the code above in your browser using DataLab