Lines Matching defs:mat
50 SkMatrix mat, inverse, iden1, iden2;
52 mat.reset();
53 mat.setTranslate(SK_Scalar1, SK_Scalar1);
54 mat.invert(&inverse);
55 iden1.setConcat(mat, inverse);
58 mat.setScale(SkIntToScalar(2), SkIntToScalar(2));
59 mat.invert(&inverse);
60 iden1.setConcat(mat, inverse);
62 test_flatten(reporter, mat);
64 mat.setScale(SK_Scalar1/2, SK_Scalar1/2);
65 mat.invert(&inverse);
66 iden1.setConcat(mat, inverse);
68 test_flatten(reporter, mat);
70 mat.setScale(SkIntToScalar(3), SkIntToScalar(5), SkIntToScalar(20), 0);
71 mat.postRotate(SkIntToScalar(25));
72 REPORTER_ASSERT(reporter, mat.invert(NULL));
73 mat.invert(&inverse);
74 iden1.setConcat(mat, inverse);
76 iden2.setConcat(inverse, mat);
78 test_flatten(reporter, mat);