Matrix: add copyTo copying data to an array and copyToColumnMajor which does the same but with column-major order

same functionality explicitly for quaternions can be deleted
This commit is contained in:
Matthias Grob
2017-11-16 04:42:54 +01:00
parent 3bd94fcd6f
commit 1dffd5930b
2 changed files with 16 additions and 14 deletions
-14
View File
@@ -260,20 +260,6 @@ public:
q = q * scalar;
}
/**
* Copy quaternion to a float array
*
* @param dst array of 4 floats
*/
void copyTo(float (&dst)[4])
{
const Quaternion &q = *this;
dst[0] = q(0);
dst[1] = q(1);
dst[2] = q(2);
dst[3] = q(3);
}
/**
* Computes the derivative of q_21 when
* rotated with angular velocity expressed in frame 1