Remove direct access to internal data

This commit is contained in:
Julian Kent
2019-09-16 10:29:48 +02:00
committed by Daniel Agar
parent 18218c8f9c
commit 51d2f9f0dc
5 changed files with 18 additions and 28 deletions
+2 -2
View File
@@ -136,8 +136,8 @@ int main()
A.renormalize();
float err = 0.0f;
for (auto & row : A._data) {
Vector3f rvec(row);
for (size_t r = 0; r < 3; r++) {
Vector3f rvec(matrix::Matrix<float,1,3>(A.row(r)).transpose());
err += fabs(1.0f - rvec.length());
}
TEST(err < eps);