SkMatrix matrix; matrix.setTranslate(10, 20);
SkMatrix matrix; matrix.setTranslate(-100, -100);In this example, we create a new SkMatrix object named matrix and set its translation components to (-100, -100). The origin of the coordinate system is now shifted 100 units to the left and 100 units up. Overall, SkMatrix is a powerful class provided by the Skia Graphics Library that allows C++ programmers to perform 2D and 3D transformations with ease.