rotvector: Create an orientation using vectorized 3x3 matrices

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/orientlib.r

Description

Creates a rotvector-class object.

Usage

1

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.

Author(s)

Duncan Murdoch

See Also

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

Examples

1
2
3
x <- rotvector(c(0,1,0,-1,0,0,0,0,1))
x
rotmatrix(x)

Example output

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

An object of class "rotmatrix"
Slot "x":
, , 1

     [,1] [,2] [,3]
[1,]    0   -1    0
[2,]    1    0    0
[3,]    0    0    1

orientlib documentation built on July 1, 2020, 6:09 p.m.