diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-01 17:45:13 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-01 17:45:13 +0000 |
| commit | 55788b44d28d38dfd0165a87c8d61c265eab4557 (patch) | |
| tree | 70cd1d51735400d3aaccfc03cee2f07af9f51d88 /src/proj_pt.h | |
| parent | simplify code (diff) | |
| download | inkscape-55788b44d28d38dfd0165a87c8d61c265eab4557.tar.gz inkscape-55788b44d28d38dfd0165a87c8d61c265eab4557.zip | |
change knot.h to Geom::Point only instead of NR::Point.
(bzr r6511)
Diffstat (limited to 'src/proj_pt.h')
| -rw-r--r-- | src/proj_pt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proj_pt.h b/src/proj_pt.h index f27719c83..b14dea50e 100644 --- a/src/proj_pt.h +++ b/src/proj_pt.h @@ -12,6 +12,7 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include <2geom/point.h> #include "libnr/nr-point.h" #include "libnr/nr-values.h" #include <gtk/gtk.h> @@ -26,6 +27,7 @@ public: Pt2 () { pt[0] = 0; pt[1] = 0; pt[2] = 1.0; } // we default to (0 : 0 : 1) Pt2 (double x, double y, double w) { pt[0] = x; pt[1] = y; pt[2] = w; } Pt2 (NR::Point const &point) { pt[0] = point[NR::X]; pt[1] = point[NR::Y]; pt[2] = 1; } + Pt2 (Geom::Point const &point) { pt[0] = point[Geom::X]; pt[1] = point[Geom::Y]; pt[2] = 1; } Pt2 (const gchar *coord_str); inline double operator[] (unsigned int index) const { |
