Affine transforms: add method to test for dilation

* Add IsDilation() to BAffineTransform and Transformable which check
  whether the transform is a dilation, i.e. consists of only
  translation and/or scaling
This commit is contained in:
Julian Harnath
2015-11-10 23:12:28 +01:00
parent 6109a2086d
commit 08135223ce
4 changed files with 20 additions and 0 deletions
+2
View File
@@ -171,6 +171,8 @@ public:
= kDefaultEpsilon) const;
bool IsIdentity(double epsilon
= kDefaultEpsilon) const;
bool IsDilation(double epsilon
= kDefaultEpsilon) const;
bool IsEqual(const BAffineTransform& other,
double epsilon
= kDefaultEpsilon) const;