Index: include/core/SkMatrix.h |
=================================================================== |
--- include/core/SkMatrix.h (revision 8539) |
+++ include/core/SkMatrix.h (working copy) |
@@ -90,6 +90,12 @@ |
*/ |
bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const; |
+ /** Returns true if the matrix contains only translation, rotation or scale |
+ (non-uniform scale is allowed). |
+ Returns false if other transformation types are included or is degenerate |
+ */ |
+ bool notSkewOrPersp(SkScalar tol = SK_ScalarNearlyZero) const; |
bsalomon
2013/04/08 15:48:39
isOrthogonal()?
robertphillips
2013/04/08 19:33:20
Done - although I'm not sure is 'isOrthogonal' is
|
+ |
enum { |
kMScaleX, |
kMSkewX, |