Q2GL: Convert from rotation Quaternions to OpenGL rotation matrix

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/RSpinconv.R

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)

RSpincalc documentation built on May 30, 2017, 2:05 a.m.

Related to Q2GL in RSpincalc...