From 55788b44d28d38dfd0165a87c8d61c265eab4557 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 1 Aug 2008 17:45:13 +0000 Subject: change knot.h to Geom::Point only instead of NR::Point. (bzr r6511) --- src/proj_pt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/proj_pt.h') 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 @@ -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 { -- cgit v1.2.3