Learn R Programming

Directional (version 2.2)

Rotation axis and angle of rotation given a rotation matrix: Rotation axis and angle of rotation given a rotation matrix

Description

Given a 3 x 3 rotation matrix, the angle and the axis of rotation are calcualted.

Usage

Arotation(A)

Arguments

A
A 3 x 3 rotation matrix.

Value

A list including: A list including:

Details

If the user does not supply a rotation matrix a message will appear.

References

course webpage of Howard E. Haber. http://scipp.ucsc.edu/~haber/ph216/rotation_12.pdf

See Also

rot.matrix, rotation, rsop

Examples

Run this code
ksi <- c(25.31, 24.29)
theta <- 2.38
A <- rot.matrix(ksi, theta, rads = FALSE)
A
Arotation(A)

Run the code above in your browser using DataLab