Home
last modified time | relevance | path

Searched refs:quat (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/math/include/math/
Dquat.h143 typedef details::TQuaternion<float> quat; typedef
147 constexpr inline quat operator"" _i(long double v) {
148 return quat(0, static_cast<float>(v), 0, 0);
150 constexpr inline quat operator"" _j(long double v) {
151 return quat(0, 0, static_cast<float>(v), 0);
153 constexpr inline quat operator"" _k(long double v) {
154 return quat(0, 0, 0, static_cast<float>(v));
157 constexpr inline quat operator"" _i(unsigned long long v) { // NOLINT
158 return quat(0, static_cast<float>(v), 0, 0);
160 constexpr inline quat operator"" _j(unsigned long long v) { // NOLINT
[all …]
DTMatHelpers.h304 TQuaternion<T> quat(TQuaternion<T>::NO_INIT); in extractQuat()
313 quat.w = T(0.5) * s; in extractQuat()
315 quat.x = (mat[1][2] - mat[2][1]) * s; in extractQuat()
316 quat.y = (mat[2][0] - mat[0][2]) * s; in extractQuat()
317 quat.z = (mat[0][1] - mat[1][0]) * s; in extractQuat()
331 quat[i] = T(0.5) * s; in extractQuat()
335 quat.w = (mat[j][k] - mat[k][j]) * s; in extractQuat()
336 quat[j] = (mat[i][j] + mat[j][i]) * s; in extractQuat()
337 quat[k] = (mat[i][k] + mat[k][i]) * s; in extractQuat()
339 return quat; in extractQuat()
/frameworks/native/libs/math/tests/
Dquat_test.cpp219 EXPECT_EQ(1_id * 1_id, quat(-1)); in TEST_F()
220 EXPECT_EQ(1_jd * 1_jd, quat(-1)); in TEST_F()
221 EXPECT_EQ(1_kd * 1_kd, quat(-1)); in TEST_F()
222 EXPECT_EQ(1_id * 1_jd * 1_kd, quat(-1)); in TEST_F()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dtypes.h46 using quat = quatf; variable