summaryrefslogtreecommitdiffstats
path: root/src/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/geom.h')
-rw-r--r--src/geom.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/geom.h b/src/geom.h
new file mode 100644
index 000000000..d00a4e37c
--- /dev/null
+++ b/src/geom.h
@@ -0,0 +1,30 @@
+/**
+ * \file geom.h
+ * \brief Various geometrical calculations
+ *
+ * Authors:
+ * Nathan Hurst <njh@mail.csse.monash.edu.au>
+ *
+ * Copyright (C) 1999-2002 authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "libnr/nr-forward.h"
+
+enum IntersectorKind {
+ INTERSECTS = 0,
+ PARALLEL,
+ COINCIDENT,
+ NO_INTERSECTION
+};
+
+/* Define here various primatives, such as line, line segment, circle, bezier path etc. */
+
+
+
+/* intersectors */
+
+IntersectorKind intersector_line_intersection(NR::Point const &n0, double const d0,
+ NR::Point const &n1, double const d1,
+ NR::Point &result);