summaryrefslogtreecommitdiff
path: root/graphics/asymptote/transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/transform.h')
-rw-r--r--graphics/asymptote/transform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/asymptote/transform.h b/graphics/asymptote/transform.h
index 158ea018f0..e8e9fff147 100644
--- a/graphics/asymptote/transform.h
+++ b/graphics/asymptote/transform.h
@@ -102,6 +102,11 @@ public:
xx == 1.0 && xy == 0.0 && yx == 0.0 && yy == 1.0;
}
+ bool isIsometry() const
+ {
+ return xx*xx+xy*xy == 1.0 && xx*yx+xy*yy == 0.0 && yx*yx+yy*yy == 1.0;
+ }
+
bool isNull() const
{
return x == 0.0 && y == 0.0 &&