File: Path.h
 1#ifndef Path_h_
 2#define Path_h_
 3
 4//. A Vertex is a 2D point.
 5struct Vertex
 6{
 7  Vertex(double xx, double yy): x(xx), y(yy) {}
 8  double x; //.< the x coordinate
 9  double y; //.< the y coordinate
10};
11
12//. Path is the basic abstraction
13//. used for drawing (curved) paths.
14class Path
15{
16public:
17  virtual ~Path() {}
18  //. Draw this path.
19  virtual void draw() = 0;
20  // temporarily commented out...
21  // bool intersects(const Path &);
22private:
23};
24
25#endif