identity method
Sets each matrix property to a value that causes a null transformation. An object transformed by applying an identity matrix will be identical to the original.
After calling the identity() method, the resulting matrix has the following properties: a=1, b=0, c=0, d=1, tx=0, ty=0.
Returns itself for chaining.
Implementation
GMatrix identity() {
a = 1;
b = 0;
c = 0;
d = 1;
tx = 0;
ty = 0;
return this;
}