checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / Triangle.java
index 6024e8f..6a938a3 100644 (file)
@@ -37,5 +37,11 @@ public abstract class Triangle {
                              p3().distance(p1())) / 2;
         return 1/(1+area()/(max*max));
     }
+    public float aspect0() {
+        float max = Math.max(Math.max(p1().distance(p2()),
+                                      p2().distance(p3())),
+                             p3().distance(p1())) / 2;
+        return (area()/(max*max));
+    }
 
 }
\ No newline at end of file