Searched refs:det (Results 1 – 9 of 9) sorted by relevance
436 float det = mMat[0]*result.mMat[0] + mMat[4]*result.mMat[1] + in inverse() local439 if (Math.abs(det) < 1e-6) { in inverse()443 det = 1.0f / det; in inverse()445 mMat[i] = result.mMat[i] * det; in inverse()464 float det = mMat[0]*result.mMat[0] + mMat[4]*result.mMat[4] + in inverseTranspose() local467 if (Math.abs(det) < 1e-6) { in inverseTranspose()471 det = 1.0f / det; in inverseTranspose()473 mMat[i] = result.mMat[i] * det; in inverseTranspose()
437 float det = mMat[0]*result.mMat[0] + mMat[4]*result.mMat[1] + in inverse() local440 if (Math.abs(det) < 1e-6) { in inverse()444 det = 1.0f / det; in inverse()446 mMat[i] = result.mMat[i] * det; in inverse()465 float det = mMat[0]*result.mMat[0] + mMat[4]*result.mMat[4] + in inverseTranspose() local468 if (Math.abs(det) < 1e-6) { in inverseTranspose()472 det = 1.0f / det; in inverseTranspose()474 mMat[i] = result.mMat[i] * det; in inverseTranspose()
63 float det = m[0]*result.m[0] + m[4]*result.m[1] + in inverse() local66 if (fabs(det) < 1e-6) { in inverse()70 det = 1.0f / det; in inverse()72 m[i] = result.m[i] * det; in inverse()104 float det = m[0]*result.m[0] + m[4]*result.m[4] + in inverseTranspose() local107 if (fabs(det) < 1e-6) { in inverseTranspose()111 det = 1.0f / det; in inverseTranspose()113 m[i] = result.m[i] * det; in inverseTranspose()
316 double det; in invers() local317 det = m[0] * inv[0] + m[1] * inv[4] + m[2] * inv[8] + m[3] * inv[12]; in invers()319 if (det == 0) { in invers()323 det = 1.0 / det; in invers()328 out[i] = inv[i] * det; in invers()
619 float det = d.mValues[0] * (d.mValues[4] * d.mValues[8] - d.mValues[5] * d.mValues[7]) in nInvert() local623 if (det == 0.0) { in nInvert()627 inv_mtx.mValues[0] = (d.mValues[4] * d.mValues[8] - d.mValues[5] * d.mValues[7]) / det; in nInvert()628 inv_mtx.mValues[1] = (d.mValues[2] * d.mValues[7] - d.mValues[1] * d.mValues[8]) / det; in nInvert()629 inv_mtx.mValues[2] = (d.mValues[1] * d.mValues[5] - d.mValues[2] * d.mValues[4]) / det; in nInvert()630 inv_mtx.mValues[3] = (d.mValues[5] * d.mValues[6] - d.mValues[3] * d.mValues[8]) / det; in nInvert()631 inv_mtx.mValues[4] = (d.mValues[0] * d.mValues[8] - d.mValues[2] * d.mValues[6]) / det; in nInvert()632 inv_mtx.mValues[5] = (d.mValues[2] * d.mValues[3] - d.mValues[0] * d.mValues[5]) / det; in nInvert()633 inv_mtx.mValues[6] = (d.mValues[3] * d.mValues[7] - d.mValues[4] * d.mValues[6]) / det; in nInvert()634 inv_mtx.mValues[7] = (d.mValues[1] * d.mValues[6] - d.mValues[0] * d.mValues[7]) / det; in nInvert()[all …]
150 const T det((a * d) - (b * c)); in fastInverse2()151 inverted[0][0] = d / det; in fastInverse2()152 inverted[0][1] = -c / det; in fastInverse2()153 inverted[1][0] = -b / det; in fastInverse2()154 inverted[1][1] = a / det; in fastInverse2()217 const T det(a * A + b * B + c * C); in fastInverse3()220 inverted[col][row] /= det; in fastInverse3()
486 float det = b * b - 4 * a * c; in calculateUorV() local487 if (det < 0) { in calculateUorV()489 ALOGE("Bad determinant! a: %f, b: %f, c: %f, det: %f", a,b,c,det); in calculateUorV()494 float sqdet = b > 0 ? -std::sqrt(det) : std::sqrt(det); in calculateUorV()
1682 float det = a * A + b * B + c * C; in inverse3x3() local1685 inverted[0] = A / det; in inverse3x3()1686 inverted[1] = B / det; in inverse3x3()1687 inverted[2] = C / det; in inverse3x3()1688 inverted[3] = (c * h - b * i) / det; in inverse3x3()1689 inverted[4] = (a * i - c * g) / det; in inverse3x3()1690 inverted[5] = (b * g - a * h) / det; in inverse3x3()1691 inverted[6] = (b * f - c * e) / det; in inverse3x3()1692 inverted[7] = (c * d - a * f) / det; in inverse3x3()1693 inverted[8] = (a * e - b * d) / det; in inverse3x3()[all …]
225 final float det = in invertM() local228 if (det == 0.0f) { in invertM()233 final float invdet = 1.0f / det; in invertM()