setToIdentity method

AffineTransformation setToIdentity()

Sets this transformation to be the identity transformation. The identity transformation has the matrix:

| 1 0 0 |
| 0 1 0 |
| 0 0 1 |
@return this transformation, with an updated matrix

Implementation

AffineTransformation setToIdentity() {
  m00 = 1.0;
  m01 = 0.0;
  m02 = 0.0;
  m10 = 0.0;
  m11 = 1.0;
  m12 = 0.0;
  return this;
}