Learn R Programming

RSpincalc (version 1.0.2)

EArandom: Generate uniform random Euler Angles

Description

EArandom generates uniform random Euler Angles.

Usage

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).

Examples

Run this code
EArandom()
EArandom(5)

Run the code above in your browser using DataLab