Home
last modified time | relevance | path

Searched refs:qr (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/math/tests/
Dquat_test.cpp242 quatd qr = quatd::fromAxisAngle(double3(0, 0, 1), M_PI / 2); in TEST_F() local
243 EXPECT_EQ(mat4d(qr).toQuaternion(), qr); in TEST_F()
249 EXPECT_EQ(qr, log(exp(qr))); in TEST_F()
251 quatd qq = qr * qr; in TEST_F()
252 quatd q2 = pow(qr, 2); in TEST_F()
261 qr = quatd::fromAxisAngle(double3(0, 0, 1), M_PI / 4); in TEST_F()
262 EXPECT_FLOAT_EQ(qr.x, qs.x); in TEST_F()
263 EXPECT_FLOAT_EQ(qr.y, qs.y); in TEST_F()
264 EXPECT_FLOAT_EQ(qr.z, qs.z); in TEST_F()
265 EXPECT_FLOAT_EQ(qr.w, qs.w); in TEST_F()
[all …]
Dmat_test.cpp609 QuatT qr = r.toQuaternion(); in TYPED_TEST() local
613 ASSERT_TYPE_EQ(qr.x, qtr.x); in TYPED_TEST()
614 ASSERT_TYPE_EQ(qr.y, qtr.y); in TYPED_TEST()
615 ASSERT_TYPE_EQ(qr.z, qtr.z); in TYPED_TEST()
616 ASSERT_TYPE_EQ(qr.w, qtr.w); in TYPED_TEST()
621 QuatT qr = r.toQuaternion(); in TYPED_TEST() local
625 ASSERT_TYPE_EQ(qr.x, qtr.x); in TYPED_TEST()
626 ASSERT_TYPE_EQ(qr.y, qtr.y); in TYPED_TEST()
627 ASSERT_TYPE_EQ(qr.z, qtr.z); in TYPED_TEST()
628 ASSERT_TYPE_EQ(qr.w, qtr.w); in TYPED_TEST()
[all …]
/frameworks/native/libs/input/
DVelocityTracker.cpp512 float qr[n][m]; in solveLeastSquares() local
515 qr[i][h] = 0; in solveLeastSquares()
517 qr[i][h] += q[j][h] * r[j][i]; in solveLeastSquares()
521 ALOGD(" - qr=%s", matrixToString(&qr[0][0], m, n, false /*rowMajor*/).c_str()); in solveLeastSquares()