Q2GL: Convert from rotation Quaternions to OpenGL rotation matrix

Description

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

Usage

1
Q2GL(Q)

Arguments

Q

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

Value

OpenGL rotation matrix 4x4xN.

Author(s)

Jose Gama

References

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

See Also

isPureRotationMatrix

Examples

1
2
Q <- c(-0.1677489, -0.7369231, -0.3682588, 0.5414703)
Q2GL(Q)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.