]> granicus.if.org Git - graphviz/commitdiff
Add addPt to geom.h interface; fix conflicting names in neatogen
authorerg <devnull@localhost>
Wed, 18 Jun 2008 19:28:39 +0000 (19:28 +0000)
committererg <devnull@localhost>
Wed, 18 Jun 2008 19:28:39 +0000 (19:28 +0000)
lib/common/geom.c
lib/common/geomprocs.h

index b1e09f0f97d3af289c6352458bfdfc1d3b5c0064..7b72bc4db7b4ec7f7ca96ec3a176a072d6d97326 100644 (file)
@@ -534,6 +534,16 @@ double ptToLine2 (pointf a, pointf b, pointf p)
 
 #define SMALL 0.0000000001
 
+pointf
+addPt (pointf a, pointf b)
+{
+    pointf c;
+
+    c.x = a.x+b.x;
+    c.y = a.y+b.y;
+    return c;
+}
+
 pointf
 subPt (pointf a, pointf b)
 {
index 6b0a574751ab91a8d22919ddc183e438b163af72..df88bb75d3296c13db9075db5019d5347ecfc702 100644 (file)
@@ -75,6 +75,7 @@ extern void rect2poly(pointf *p);
 extern pointf scale(double c, pointf v);
 extern pointf perp(pointf v);
 extern pointf subPt(pointf v, pointf w);
+extern pointf addPt(pointf v, pointf w);
 
 extern int seg_intersect (pointf a, pointf b, pointf c, pointf d, pointf* x);
 #ifdef __cplusplus