massive reworking of Box.java
[org.ibex.core.git] / src / org / ibex / graphics / Affine.java
index 83b2d18..0956adc 100644 (file)
@@ -17,6 +17,7 @@ public final class Affine {
     Affine(float _a, float _b, float _c, float _d, float _e, float _f) { a = _a; b = _b; c = _c; d = _d; e = _e; f = _f; }
     public String toString() { return "[ " + a + ", " + b + ", " + c + ", " + d + ", " + e + ", " + f + " ]"; }
     public Affine copy() { return new Affine(a, b, c, d, e, f); }
+    public boolean doesNotRotate() { return a==0 && b==0 && c==0 && d==0; }
     public static Affine identity() { return new Affine(1, 0, 0, 1, 0, 0); }
     public static Affine scale(float sx, float sy) { return new Affine(sx, 0, 0, sy, 0, 0); }
     public static Affine shear(float degrees) {