roty: Returns three dimensional rotation matrices for rotation...

View source: R/roty.R

rotyR Documentation

Returns three dimensional rotation matrices for rotation around the y-axis of a three dimensional coordinate system.

Description

Returns three dimensional rotation matrices for rotation around the y-axis of a three dimensional coordinate system.

Usage

roty(ang, radians = TRUE, block.out = FALSE, drop.out = TRUE, byrow = TRUE)

Arguments

ang

is a vedctor of the rotation angles around the y-axis.

radians

is TRUE if 'ang' is given in radians, and FALSE if 'ang' is given in degrees.

block.out

is TRUE if the rotation matrices should be returned as a 3x3*l matrix, where 'l' is the number of rotation angles. If FALSE, an 3x3xl array is returned.

drop.out

is relevant only if block.out==FALSE and l==1, and if set to TRUE a 3x3 matrix is returned instead of a 3x3x1 array.

byrow

is TRUE if the matrices are to be organized by rows (vertically).


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.