Searched refs:quat (Results 1 – 6 of 6) 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/av/media/libheadtracking/ |
D | QuaternionUtil-test.cpp | 32 Quaternionf quat = rotationVectorToQuaternion(rot); in TEST() local 33 ASSERT_EQ(quat * Vector3f(1, 0, 0), Vector3f(0, 1, 0)); in TEST() 34 ASSERT_EQ(quat * Vector3f(0, 1, 0), Vector3f(-1, 0, 0)); in TEST() 35 ASSERT_EQ(quat * Vector3f(0, 0, 1), Vector3f(0, 0, 1)); in TEST() 39 Quaternionf quat = Quaternionf::FromTwoVectors(Vector3f(1, 0, 0), Vector3f(0, 1, 0)); in TEST() local 40 Vector3f rot = quaternionToRotationVector(quat); in TEST()
|
D | SensorPoseProvider.cpp | 398 Eigen::Quaternionf quat(event.data[3], event.data[0], event.data[1], event.data[2]); in parseEvent() local 400 quat *= rotateX(-M_PI_2); in parseEvent() 401 return PoseEvent{Pose3f(quat), std::optional<Twist3f>(), false}; in parseEvent() 409 Eigen::Quaternionf quat = rotationVectorToQuaternion(rotation); in parseEvent() local 415 return PoseEvent{Pose3f(quat), Twist3f(Eigen::Vector3f::Zero(), twist), in parseEvent()
|
/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
|