From 5ea7f0464eb13581322215f0614eaae52393e02a Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 16 Sep 2007 19:06:02 +0000 Subject: zoomedit: C++ized Polygon --- Line.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Line.h (limited to 'Line.h') diff --git a/Line.h b/Line.h new file mode 100644 index 0000000..0fad7f3 --- /dev/null +++ b/Line.h @@ -0,0 +1,23 @@ +#ifndef LINE_H_ +#define LINE_H_ + +#include "Vertex.h" + + +#define INTERSECTION_ERROR -1 +#define INTERSECTION_NONE 0 +#define INTERSECTION_IDENTICAL 1 +#define INTERSECTION_LINE 2 +#define INTERSECTION_LINE_LINE 2 +#define INTERSECTION_LINE_SEGMENT 3 +#define INTERSECTION_SEGMENT_LINE 6 +#define INTERSECTION_SEGMENT_SEGMENT 7 + +typedef struct _LINE { + Vertex v1, v2; +} LINE; + + +int lineIntersection(const LINE *la, const LINE *lb, Vertex *v); + +#endif /*LINE_H_*/ -- cgit v1.2.3