zeroflag
public text v1 · immutable public Matrix Invert()
{
double det = (this[0, 0] * this[1, 1]) - (this[0, 1] * this[1, 0]);
this[0, 0] = this[1, 1] / det;
this[0, 1] = ((-1) * this[0, 1]) / det;
this[1, 0] = ((-1) * this[1, 0]) / det;
this[1, 1] = this[0, 0] / det;
return this;
}