/* Line.h Line class Original code: JM, 29 Oct 97 */ #ifndef LINE_H #define LINE_H #include "Point.h" typedef struct line *Line; Line ConsLine( Point p1, Point p2 ); /* Construct a line from its endpoints Pre-cond: (p1 != NULL) && (p2 != NULL) Post-cond: returns a valid line or NULL if no memory */ void DeleteLine( Line l ); /* Delete l and free resources Pre-cond: l != NULL */ Point StartPoint( Line l ); Point EndPoint( Line l ); /* Projectors Pre-cond: l != NULL */ #endif