Test: added copyTo tests for Vector3, Quaternion and Matrix including clolumn-major order

This commit is contained in:
Matthias Grob
2017-11-16 04:42:54 +01:00
parent 1dffd5930b
commit 308a6c91cb
4 changed files with 53 additions and 10 deletions
-10
View File
@@ -334,16 +334,6 @@ int main()
R = Dcmf(q);
TEST(isEqual(q, Quatf(R)));
// Quaternion copyTo
q = Quatf(1, 2, 3, 4);
float dst[4] = {};
q.copyTo(dst);
TEST(fabs(q(0) - dst[0]) < eps);
TEST(fabs(q(1) - dst[1]) < eps);
TEST(fabs(q(2) - dst[2]) < eps);
TEST(fabs(q(3) - dst[3]) < eps);
return 0;
}