Home
last modified time | relevance | path

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

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTQuaternionF.cpp115 float fCosine, fAngle, A, B; in PVRTMatrixQuaternionSlerpF() local
129 fCosine = qA.w*qB.w + qA.x*qB.x + qA.y*qB.y + qA.z*qB.z; in PVRTMatrixQuaternionSlerpF()
131 if (fCosine < 0) in PVRTMatrixQuaternionSlerpF()
157 fCosine = PVRT_MIN(fCosine, 1.0f); in PVRTMatrixQuaternionSlerpF()
158 fAngle = (float)PVRTFACOS(fCosine); in PVRTMatrixQuaternionSlerpF()
DPVRTMatrixF.cpp149 float fCosine, fSine; in PVRTMatrixRotationXF() local
153 fCosine = (float)PVRTFCOS(-fAngle); in PVRTMatrixRotationXF()
156 fCosine = (float)PVRTFCOS(fAngle); in PVRTMatrixRotationXF()
162 mOut.f[ 1]=0.0f; mOut.f[ 5]=fCosine; mOut.f[ 9]=fSine; mOut.f[13]=0.0f; in PVRTMatrixRotationXF()
163 mOut.f[ 2]=0.0f; mOut.f[ 6]=-fSine; mOut.f[10]=fCosine; mOut.f[14]=0.0f; in PVRTMatrixRotationXF()
177 float fCosine, fSine; in PVRTMatrixRotationYF() local
181 fCosine = (float)PVRTFCOS(-fAngle); in PVRTMatrixRotationYF()
184 fCosine = (float)PVRTFCOS(fAngle); in PVRTMatrixRotationYF()
189 mOut.f[ 0]=fCosine; mOut.f[ 4]=0.0f; mOut.f[ 8]=-fSine; mOut.f[12]=0.0f; in PVRTMatrixRotationYF()
191 mOut.f[ 2]=fSine; mOut.f[ 6]=0.0f; mOut.f[10]=fCosine; mOut.f[14]=0.0f; in PVRTMatrixRotationYF()
[all …]
DPVRTQuaternionX.cpp119 int fCosine, fAngle, A, B; in PVRTMatrixQuaternionSlerpX() local
133 fCosine = PVRTXMUL(qA.w, qB.w) + in PVRTMatrixQuaternionSlerpX()
136 if(fCosine < PVRTF2X(0.0f)) in PVRTMatrixQuaternionSlerpX()
162 fCosine = PVRT_MIN(fCosine, PVRTF2X(1.0f)); in PVRTMatrixQuaternionSlerpX()
163 fAngle = PVRTXACOS(fCosine); in PVRTMatrixQuaternionSlerpX()
DPVRTMatrixX.cpp154 int fCosine, fSine; in PVRTMatrixRotationXX() local
158 fCosine = PVRTXCOS(-fAngle); in PVRTMatrixRotationXX()
161 fCosine = PVRTXCOS(fAngle); in PVRTMatrixRotationXX()
167 mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=fCosine; mOut.f[ 9]=fSine; mOut.f[13]=PVRTF2X(0.0f); in PVRTMatrixRotationXX()
168 mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=-fSine; mOut.f[10]=fCosine; mOut.f[14]=PVRTF2X(0.0f); in PVRTMatrixRotationXX()
182 int fCosine, fSine; in PVRTMatrixRotationYX() local
186 fCosine = PVRTXCOS(-fAngle); in PVRTMatrixRotationYX()
189 fCosine = PVRTXCOS(fAngle); in PVRTMatrixRotationYX()
194 mOut.f[ 0]=fCosine; mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=-fSine; mOut.f[12]=PVRTF2X(0.0f); in PVRTMatrixRotationYX()
196 mOut.f[ 2]=fSine; mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=fCosine; mOut.f[14]=PVRTF2X(0.0f); in PVRTMatrixRotationYX()
[all …]