Searched refs:fCos (Results 1 – 4 of 4) sorted by relevance
176 T fCos = dot(x, y); local178 if(fCos < T(0))181 fCos = -fCos;184 //if(fCos > 1.0f) // problem186 if(fCos > T(0.9999))193 T fSin = sqrt(T(1) - fCos * fCos);194 T fAngle = atan(fSin, fCos);
53 float fSin, fCos; in PVRTMatrixQuaternionRotationAxisF() local56 fCos = (float)PVRTFCOS(fAngle * 0.5f); in PVRTMatrixQuaternionRotationAxisF()62 qOut.w = fCos; in PVRTMatrixQuaternionRotationAxisF()
54 int fSin, fCos; in PVRTMatrixQuaternionRotationAxisX() local57 fCos = PVRTXCOS(fAngle>>1); in PVRTMatrixQuaternionRotationAxisX()63 qOut.w = fCos; in PVRTMatrixQuaternionRotationAxisX()
453 float fCos = dot(x, y);455 if(fCos < T(0))458 fCos = -fCos;461 //if(fCos > 1.0f) // problem463 if(fCos > T(0.9999))470 T fSin = sqrt(T(1) - fCos * fCos);471 T fAngle = atan(fSin, fCos);