Home
last modified time | relevance | path

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

/external/vulkan-validation-layers/libs/glm/gtx/
Dquaternion.inl176 T fCos = dot(x, y); local
178 if(fCos < T(0))
181 fCos = -fCos;
184 //if(fCos > 1.0f) // problem
186 if(fCos > T(0.9999))
193 T fSin = sqrt(T(1) - fCos * fCos);
194 T fAngle = atan(fSin, fCos);
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTQuaternionF.cpp53 float fSin, fCos; in PVRTMatrixQuaternionRotationAxisF() local
56 fCos = (float)PVRTFCOS(fAngle * 0.5f); in PVRTMatrixQuaternionRotationAxisF()
62 qOut.w = fCos; in PVRTMatrixQuaternionRotationAxisF()
DPVRTQuaternionX.cpp54 int fSin, fCos; in PVRTMatrixQuaternionRotationAxisX() local
57 fCos = PVRTXCOS(fAngle>>1); in PVRTMatrixQuaternionRotationAxisX()
63 qOut.w = fCos; in PVRTMatrixQuaternionRotationAxisX()
/external/vulkan-validation-layers/libs/glm/gtc/
Dquaternion.inl453 float fCos = dot(x, y);
455 if(fCos < T(0))
458 fCos = -fCos;
461 //if(fCos > 1.0f) // problem
463 if(fCos > T(0.9999))
470 T fSin = sqrt(T(1) - fCos * fCos);
471 T fAngle = atan(fSin, fCos);