]> granicus.if.org Git - graphviz/commitdiff
areaOf: reflow some text
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Sep 2021 01:00:50 +0000 (18:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 16 Sep 2021 02:56:26 +0000 (19:56 -0700)
lib/neatogen/adjust.c

index 52895e4177f7434390201188588595311ad00cf1..935eee634be322b23648f89c6abb52698a4ff7a7 100644 (file)
@@ -368,12 +368,7 @@ static void increaseBoundBox(void)
   */
 static double areaOf(Point a, Point b, Point c)
 {
-    double area;
-
-    area = fabs
-                 (a.x * (b.y - c.y) + b.x * (c.y - a.y) +
-                  c.x * (a.y - b.y)) / 2;
-    return area;
+    return fabs(a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y)) / 2;
 }
 
  /* centroidOf: