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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user