major optimization updates
[debian/openrocket] / src / net / sf / openrocket / optimization / general / Point.java
index 47dab113ec0cc610fb2b6d87d17177f3e63b2ce0..9b2bece88c405f78e51a0452d7b73acaa2bc5aa1 100644 (file)
@@ -139,7 +139,7 @@ public final class Point {
         */
        public double length() {
                if (length < 0) {
-                       length = Math.sqrt(length2());
+                       length = MathUtil.safeSqrt(length2());
                }
                return length;
        }