A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dmurdoch.github.io/orientlib/reference/rotvector.html below:

Create an orientation using vectorized 3x3 matrices — rotvector • orientlib

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.

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
#> 
#> 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4