fix some typos and better explanation of quaternion ordering

This commit is contained in:
Roman
2016-05-15 18:42:21 +02:00
parent 2b3bdb523d
commit 1033e145a5
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ public:
/** /**
* Constructor from array * Constructor from array
* *
* @param other array * @param _data pointer to array
*/ */
Dcm(const Type *data_) : Matrix<Type, 3, 3>(data_) Dcm(const Type *data_) : Matrix<Type, 3, 3>(data_)
{ {
+1 -1
View File
@@ -136,7 +136,7 @@ public:
* Instance is set from dcm representing transformation * Instance is set from dcm representing transformation
* from frame 2 to frame 1. * from frame 2 to frame 1.
* *
* @param dcm_ dcm to set angles to * @param dcm Direction cosine matrix instance to convert from.
*/ */
void set_from_dcm(const Dcm<Type> & dcm) void set_from_dcm(const Dcm<Type> & dcm)
{ {
+3 -1
View File
@@ -3,7 +3,8 @@
* *
* A quaternion instance of this class describes a rotation from * A quaternion instance of this class describes a rotation from
* coordinate frame 1 to corrdinate frame 2. The first element of the quaternion * coordinate frame 1 to corrdinate frame 2. The first element of the quaternion
* represents the real part. * represents the real part, thus, a quaternion representing a zero-rotation
* is define as (1,0,0,0).
* *
* @author James Goppert <james.goppert@gmail.com> * @author James Goppert <james.goppert@gmail.com>
*/ */
@@ -104,6 +105,7 @@ public:
* *
* Instance is initialized from quaternion values representing coordinate * Instance is initialized from quaternion values representing coordinate
* transformation from frame 2 to frame 1. * transformation from frame 2 to frame 1.
* A zero-rotation quaternion is represented by (1,0,0,0).
* *
* @param a set quaternion value 0 * @param a set quaternion value 0
* @param b set quaternion value 1 * @param b set quaternion value 1