This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/Line.h

24 lines
511 B
C
Raw Normal View History

2007-09-16 19:06:02 +00:00
#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_*/