Searched refs:idet (Results 1 – 2 of 2) sorted by relevance
247 …float idet = 1.0f / (s[0] * c[5] - s[1] * c[4] + s[2] * c[3] + s[3] * c[2] - s[4] * c[1] + s[5] * … in mat4x4_invert() local249 T[0][0] = (M[1][1] * c[5] - M[1][2] * c[4] + M[1][3] * c[3]) * idet; in mat4x4_invert()250 T[0][1] = (-M[0][1] * c[5] + M[0][2] * c[4] - M[0][3] * c[3]) * idet; in mat4x4_invert()251 T[0][2] = (M[3][1] * s[5] - M[3][2] * s[4] + M[3][3] * s[3]) * idet; in mat4x4_invert()252 T[0][3] = (-M[2][1] * s[5] + M[2][2] * s[4] - M[2][3] * s[3]) * idet; in mat4x4_invert()254 T[1][0] = (-M[1][0] * c[5] + M[1][2] * c[2] - M[1][3] * c[1]) * idet; in mat4x4_invert()255 T[1][1] = (M[0][0] * c[5] - M[0][2] * c[2] + M[0][3] * c[1]) * idet; in mat4x4_invert()256 T[1][2] = (-M[3][0] * s[5] + M[3][2] * s[2] - M[3][3] * s[1]) * idet; in mat4x4_invert()257 T[1][3] = (M[2][0] * s[5] - M[2][2] * s[2] + M[2][3] * s[1]) * idet; in mat4x4_invert()259 T[2][0] = (M[1][0] * c[4] - M[1][1] * c[2] + M[1][3] * c[0]) * idet; in mat4x4_invert()[all …]
355 const float idet = 1.0f / (a*d - b*c); in inverse() local356 result.mMatrix[0][0] = d*idet; in inverse()357 result.mMatrix[0][1] = -c*idet; in inverse()358 result.mMatrix[1][0] = -b*idet; in inverse()359 result.mMatrix[1][1] = a*idet; in inverse()