Home
last modified time | relevance | path

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

/frameworks/av/media/libheadtracking/
DQuaternionUtil-test.cpp58 float pitch, roll, yaw; in TEST() local
65 quaternionToAngles(rotationVectorToQuaternion({angle, 0.f, 0.f}), &pitch, &roll, &yaw); in TEST()
68 EXPECT_NEAR(0.f, yaw, NEAR); in TEST()
70 quaternionToAngles(rotationVectorToQuaternion({0.f, angle, 0.f}), &pitch, &roll, &yaw); in TEST()
73 EXPECT_NEAR(0.f, yaw, NEAR); in TEST()
75 quaternionToAngles(rotationVectorToQuaternion({0.f, 0.f, angle}), &pitch, &roll, &yaw); in TEST()
78 EXPECT_NEAR(angle, yaw, NEAR); in TEST()
83 rotationVectorToQuaternion({M_PI, 0.f, 0.f}), &pitch, &roll, &yaw); in TEST()
88 float pitch, roll, yaw; in TEST() local
102 quaternionToAngles(world_z * q, &pitch, &roll, &yaw); in TEST()
[all …]
/frameworks/av/media/libheadtracking/include/media/
DQuaternionUtil.h192 auto quaternionToAngles(const Eigen::Quaternionf& q, float *pitch, float *roll, float *yaw) { in quaternionToAngles() argument
286 if (yaw != nullptr) { in quaternionToAngles()
288 *yaw = atan2(ux_1, ux_0); in quaternionToAngles()
/frameworks/native/libs/math/include/math/
DTMatHelpers.h543 static CONSTEXPR BASE<T> eulerYXZ(Y yaw, P pitch, R roll) { in eulerYXZ() argument
544 return eulerZYX(roll, pitch, yaw); in eulerYXZ()
562 static CONSTEXPR BASE<T> eulerZYX(Y yaw, P pitch, R roll) { in eulerZYX() argument
564 T cy = std::cos(yaw); in eulerZYX()
565 T sy = std::sin(yaw); in eulerZYX()