rotvector: Create an orientation using vectorized 3x3 matrices

View source: R/orientlib.r

rotvectorR Documentation

Create an orientation using vectorized 3x3 matrices

Description

Creates a rotvector-class object.

Usage

rotvector(m)

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

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

orientlib documentation built on Jan. 10, 2023, 5:14 p.m.