Home
last modified time | relevance | path

Searched refs:fSinAngle (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTQuaternionF.cpp81 float fCosAngle, fSinAngle; in PVRTMatrixQuaternionToAxisAngleF() local
88 fSinAngle = (float)sqrt(temp); in PVRTMatrixQuaternionToAxisAngleF()
91 if ((float)fabs(fSinAngle)<0.0005f) in PVRTMatrixQuaternionToAxisAngleF()
92 fSinAngle = 1.0f; in PVRTMatrixQuaternionToAxisAngleF()
95 vAxis.x = qIn.x / fSinAngle; in PVRTMatrixQuaternionToAxisAngleF()
96 vAxis.y = qIn.y / fSinAngle; in PVRTMatrixQuaternionToAxisAngleF()
97 vAxis.z = qIn.z / fSinAngle; in PVRTMatrixQuaternionToAxisAngleF()
DPVRTQuaternionX.cpp82 int fCosAngle, fSinAngle; in PVRTMatrixQuaternionToAxisAngleX() local
89 fSinAngle = PVRTF2X(((float)sqrt(PVRTX2F(temp)))); in PVRTMatrixQuaternionToAxisAngleX()
92 if (PVRTABS(fSinAngle)<PVRTF2X(0.0005f)) in PVRTMatrixQuaternionToAxisAngleX()
94 fSinAngle = PVRTF2X(1.0f); in PVRTMatrixQuaternionToAxisAngleX()
98 vAxis.x = PVRTXDIV(qIn.x, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()
99 vAxis.y = PVRTXDIV(qIn.y, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()
100 vAxis.z = PVRTXDIV(qIn.z, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()