diff options
author | neoraider <devnull@localhost> | 2007-09-16 21:06:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-09-16 21:06:02 +0200 |
commit | 5ea7f0464eb13581322215f0614eaae52393e02a (patch) | |
tree | 073163463ab20fd00016a5fbcd56c6dcf9857182 /Line.h | |
parent | 01e98d51fedf65ad71d468c3b0410d6e7764a384 (diff) | |
download | zoomedit-5ea7f0464eb13581322215f0614eaae52393e02a.tar zoomedit-5ea7f0464eb13581322215f0614eaae52393e02a.zip |
zoomedit: C++ized Polygon
Diffstat (limited to 'Line.h')
-rw-r--r-- | Line.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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_*/ |