/external/swiftshader/third_party/PowerVR_SDK/Tools/ |
D | PVRTQuaternionF.cpp | 186 void PVRTMatrixQuaternionNormalizeF(PVRTQUATERNIONf &quat) in PVRTMatrixQuaternionNormalizeF() argument 192 temp = quat.w*quat.w + quat.x*quat.x + quat.y*quat.y + quat.z*quat.z; in PVRTMatrixQuaternionNormalizeF() 199 quat.x *= fMagnitude; in PVRTMatrixQuaternionNormalizeF() 200 quat.y *= fMagnitude; in PVRTMatrixQuaternionNormalizeF() 201 quat.z *= fMagnitude; in PVRTMatrixQuaternionNormalizeF() 202 quat.w *= fMagnitude; in PVRTMatrixQuaternionNormalizeF() 226 const PVRTQUATERNIONf &quat) in PVRTMatrixRotationQuaternionF() argument 233 qInv.x = -quat.x; in PVRTMatrixRotationQuaternionF() 234 qInv.y = -quat.y; in PVRTMatrixRotationQuaternionF() 235 qInv.z = -quat.z; in PVRTMatrixRotationQuaternionF() [all …]
|
D | PVRTQuaternionX.cpp | 193 void PVRTMatrixQuaternionNormalizeX(PVRTQUATERNIONx &quat) in PVRTMatrixQuaternionNormalizeX() argument 199 n = PVRTABS(quat.w) + PVRTABS(quat.x) + PVRTABS(quat.y) + PVRTABS(quat.z); in PVRTMatrixQuaternionNormalizeX() 200 qTemp.w = PVRTXDIV(quat.w, n); in PVRTMatrixQuaternionNormalizeX() 201 qTemp.x = PVRTXDIV(quat.x, n); in PVRTMatrixQuaternionNormalizeX() 202 qTemp.y = PVRTXDIV(quat.y, n); in PVRTMatrixQuaternionNormalizeX() 203 qTemp.z = PVRTXDIV(quat.z, n); in PVRTMatrixQuaternionNormalizeX() 210 quat.x = PVRTXMUL(qTemp.x, f); in PVRTMatrixQuaternionNormalizeX() 211 quat.y = PVRTXMUL(qTemp.y, f); in PVRTMatrixQuaternionNormalizeX() 212 quat.z = PVRTXMUL(qTemp.z, f); in PVRTMatrixQuaternionNormalizeX() 213 quat.w = PVRTXMUL(qTemp.w, f); in PVRTMatrixQuaternionNormalizeX() [all …]
|
D | PVRTQuaternion.h | 170 void PVRTMatrixQuaternionNormalizeF(PVRTQUATERNIONf &quat); 179 void PVRTMatrixQuaternionNormalizeX(PVRTQUATERNIONx &quat); 201 const PVRTQUATERNIONf &quat); 223 const PVRTQUATERNIONx &quat);
|
/external/dynamic_depth/internal/dynamic_depth/ |
D | earth_pose.cc | 26 const std::vector<float> NormalizeQuaternion(const std::vector<float>& quat) { in NormalizeQuaternion() argument 27 if (quat.size() < 4) { in NormalizeQuaternion() 30 float length = std::sqrt((quat[0] * quat[0]) + (quat[1] * quat[1]) + in NormalizeQuaternion() 31 (quat[2] * quat[2])) + in NormalizeQuaternion() 32 (quat[3] * quat[3]); in NormalizeQuaternion() 33 const std::vector<float> normalized = {quat[0] / length, quat[1] / length, in NormalizeQuaternion() 34 quat[2] / length, quat[3] / length}; in NormalizeQuaternion()
|
D | pose.cc | 26 const std::vector<float> NormalizeQuaternion(const std::vector<float>& quat) { in NormalizeQuaternion() argument 27 if (quat.size() < 4) { in NormalizeQuaternion() 30 float length = std::sqrt((quat[0] * quat[0]) + (quat[1] * quat[1]) + in NormalizeQuaternion() 31 (quat[2] * quat[2]) + (quat[3] * quat[3])); in NormalizeQuaternion() 32 const std::vector<float> normalized = {quat[0] / length, quat[1] / length, in NormalizeQuaternion() 33 quat[2] / length, quat[3] / length}; in NormalizeQuaternion()
|
/external/eigen/bench/ |
D | geometry.cpp | 104 Quaternion<Scalar> quat;quat.setIdentity(); in main() local 105 ToRotationMatrixWrapper<Quaternion<Scalar> > quatmat(quat); in main() 119 bench("quaternion", quat); in main()
|
/external/libxcam/xcore/ |
D | vec_mat.h | 1023 inline Quaternion<T> conjugate (const Quaternion<T>& quat) const { in conjugate() argument 1024 return Quaternion<T>(-quat.v, quat.w); in conjugate() 1027 inline Quaternion<T> inverse (const Quaternion<T>& quat) const { in inverse() argument 1028 return conjugate(quat) * ( 1.0f / magnitude(quat)); in inverse() 1031 inline Quaternion<T> lerp (T weight, const Quaternion<T>& quat) const { in lerp() argument 1032 return Quaternion<T>(v.lerp(weight, quat.v), (1 - weight) * w + weight * quat.w); in lerp() 1035 inline Quaternion<T> slerp(T r, const Quaternion<T>& quat) const { in slerp() argument 1037 T cos_theta = w * quat.w + v[0] * quat.v[0] + v[1] * quat.v[1] + v[2] * quat.v[2]; in slerp() 1048 ret.w = 0.5 * w + 0.5 * quat.w; in slerp() 1049 ret.v = v.lerp(0.5, quat.v); in slerp() [all …]
|
D | image_projector.cpp | 258 Quaternd quat = interp_orientation (ts, orientation, pose_ts, index) + in calc_camera_extrinsics() local 261 Mat3d extrinsics = quat.rotation_matrix (); in calc_camera_extrinsics() 305 Quaternd quat = interp_orientation (ts, orientation, orient_ts, index) + in calc_camera_extrinsics() local 308 Mat3d extrinsics = quat.rotation_matrix (); in calc_camera_extrinsics()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | 2009-11-01-NeonMoves.ll | 8 define arm_aapcs_vfpcc void @bar(%foo* noalias sret %agg.result, <4 x float> %quat.0) nounwind { 12 store <4 x float> %quat.0, <4 x float>* %0
|
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/ |
D | 2009-11-01-NeonMoves.ll | 8 define arm_aapcs_vfpcc void @bar(%foo* noalias sret %agg.result, <4 x float> %quat.0) nounwind { 12 store <4 x float> %quat.0, <4 x float>* %0
|
/external/llvm/test/CodeGen/ARM/ |
D | 2009-11-01-NeonMoves.ll | 8 define arm_aapcs_vfpcc void @bar(%foo* noalias sret %agg.result, <4 x float> %quat.0) nounwind { 12 store <4 x float> %quat.0, <4 x float>* %0
|
/external/skqp/platform_tools/android/apps/arcore/src/main/cpp/ |
D | util.cc | 180 glm::quat plane_quaternion(plane_pose_raw[3], plane_pose_raw[0], in GetPlaneNormal() 206 glm::quat cameraQuat = glm::quat(cameraOutRaw[0], cameraOutRaw[1], cameraOutRaw[2], in GetCameraRotationMatrix()
|
/external/skia/platform_tools/android/apps/arcore/src/main/cpp/ |
D | util.cc | 180 glm::quat plane_quaternion(plane_pose_raw[3], plane_pose_raw[0], in GetPlaneNormal() 206 glm::quat cameraQuat = glm::quat(cameraOutRaw[0], cameraOutRaw[1], cameraOutRaw[2], in GetCameraRotationMatrix()
|
/external/eigen/Eigen/src/Geometry/ |
D | Quaternion.h | 646 Quaternion quat; 647 quat.setFromTwoVectors(a, b); 648 return quat;
|