2. Rotating a path with a matrix, then resetting the matrix to its original state:C++
3. Scaling and translating a shape with a matrix, then resetting the matrix to its original state:C++ SkMatrix matrix; matrix.setScale(2.0f, 2.0f); // scale shape by a factor of 2 matrix.postTranslate(10.0f, 20.0f); // translate shape by (10, 20) // draw shape with the scaled and translated matrix // ... matrix.reset(); // reset matrix to original state (no scaling or translation applied) ``` These examples demonstrate how SkMatrix reset() method can be used to undo any transformations applied to the matrix. SkMatrix is part of the Skia library, which is an open-source graphics engine developed by Google. It is typically included in the Skia package or library.