Searched refs:quat (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/libs/math/include/math/ |
D | quat.h | 143 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 …]
|
D | TMatHelpers.h | 304 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/opt/gamesdk/third_party/cube/app/src/main/cpp/ |
D | linmath.h | 388 typedef float quat[4]; typedef 389 static inline void quat_identity(quat q) { in quat_identity() 393 static inline void quat_add(quat r, quat a, quat b) { in quat_add() 397 static inline void quat_sub(quat r, quat a, quat b) { in quat_sub() 401 static inline void quat_mul(quat r, quat p, quat q) { in quat_mul() 410 static inline void quat_scale(quat r, quat v, float s) { in quat_scale() 414 static inline float quat_inner_product(quat a, quat b) { in quat_inner_product() 420 static inline void quat_conj(quat r, quat q) { in quat_conj() 426 static inline void quat_mul_vec3(vec3 r, quat q, vec3 v) { in quat_mul_vec3() 427 quat v_ = {v[0], v[1], v[2], 0.f}; in quat_mul_vec3() [all …]
|
/frameworks/native/libs/math/tests/ |
D | quat_test.cpp | 219 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/ |
D | types.h | 46 using quat = quatf; variable
|