EArandom: Generate uniform random Euler Angles

Description Usage Arguments Value Author(s) Examples

Description

EArandom generates uniform random Euler Angles.

Usage

1
EArandom(n=NA, EulerOrder='zyx', tol = 10 * .Machine$double.eps, ignoreAllChk=FALSE)

Arguments

n

Optional integer for the number of generated Euler Angles, default = 1.

EulerOrder

Euler Order (xyx, yzy, zxz, xzx, yxy, zyz, xyz, yzx, zxy, xzy, yxz, zyx).

tol

Tolerance from deviations from unity for the determinant of rotation matrices or the the vector length for unitary vectors.

ignoreAllChk

Logical, TRUE=disables all warnings and error checks (use with caution!).

Value

EA

Euler Angles (EA).

Author(s)

Jose Gama

Examples

1
2

Example output

           [,1]      [,2]     [,3]
[1,] -0.4700857 0.8866483 1.187218
           [,1]       [,2]       [,3]
[1,]  0.3899853 -0.1715145 -1.8724034
[2,] -2.2797728 -1.1512446 -2.4083420
[3,] -0.4812260 -0.9190864 -1.2721056
[4,] -2.9781653 -0.6749156  0.6851121
[5,]  2.8580675  0.2522500  1.3380818

RSpincalc documentation built on May 2, 2019, 10:59 a.m.