about summary refs log tree commit diff
path: root/converter/other/pamtosvg/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/pamtosvg/point.h')
-rw-r--r--converter/other/pamtosvg/point.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/converter/other/pamtosvg/point.h b/converter/other/pamtosvg/point.h
index 037ec8a0..0346f301 100644
--- a/converter/other/pamtosvg/point.h
+++ b/converter/other/pamtosvg/point.h
@@ -1,8 +1,31 @@
 #ifndef POINT_H_INCLUDED
 #define POINT_H_INCLUDED
 
+#include <stdbool.h>
+
 typedef struct {
   float x, y, z;
-} float_coord;
+} Point;
+
+Point
+point_make(float const x,
+           float const y,
+           float const z);
+
+bool
+point_equal(Point const comparand,
+            Point const comparator);
+
+Point
+point_sum(Point const coord1,
+          Point const coord2);
+
+Point
+point_scaled(Point const coord,
+             float const r);
+
+float
+point_distance(Point const p1,
+               Point const p2);
 
 #endif