- float det = 1 / (a * d - b * c);
- float _a = d * det;
- float _b = -1 * b * det;
- float _c = -1 * c * det;
- float _d = a * det;
- float _e = -1 * e * a - f * c;
- float _f = -1 * e * b - f * d;
+ float det = (a * d - b * c);
+ float _a = d / det;
+ float _b = -1 * b / det;
+ float _c = -1 * c / det;
+ float _d = a / det;
+ float _e = (f*c-e*d)/det;
+ float _f = (b*e-a*f)/det;