Learn R Programming

RSpincalc (version 1.0.2)

Q2GL: Convert from rotation Quaternions to OpenGL rotation matrix

Description

DCM2EA converts from Quaternions (Q) to OpenGL rotation matrix.

Usage

Q2GL(Q)

Arguments

Q
rotation Quaternions (Q) vector [q1, q2, q3, q4].

Value

OpenGL rotation matrix 4x4xN.

References

Python - IMU Brick 2012 http://www.tinkerforge.com/doc/Software/Bricks/IMU_Brick_Python.html

See Also

isPureRotationMatrix

Examples

Run this code
Q <- c(-0.1677489, -0.7369231, -0.3682588, 0.5414703)
Q2GL(Q)

Run the code above in your browser using DataLab