diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-09-18 17:43:41 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-09-18 17:43:41 +0000 |
| commit | 4feb015def0a7d59a390c6d4e8c24d6d26c70168 (patch) | |
| tree | 97e9a78fc9af335a599d44a73beeadd2eb74556c /src/proj_pt.h | |
| parent | More NR ==> Geom conversion (points and some matrices/transforms) (diff) | |
| download | inkscape-4feb015def0a7d59a390c6d4e8c24d6d26c70168.tar.gz inkscape-4feb015def0a7d59a390c6d4e8c24d6d26c70168.zip | |
More NR::Point ==> Geom::Point
(bzr r6837)
Diffstat (limited to 'src/proj_pt.h')
| -rw-r--r-- | src/proj_pt.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/proj_pt.h b/src/proj_pt.h index b14dea50e..844cbb2c4 100644 --- a/src/proj_pt.h +++ b/src/proj_pt.h @@ -13,7 +13,6 @@ */ #include <2geom/point.h> -#include "libnr/nr-point.h" #include "libnr/nr-values.h" #include <gtk/gtk.h> @@ -26,7 +25,6 @@ class Pt2 { 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); @@ -82,7 +80,7 @@ public: } void normalize(); - NR::Point affine(); + Geom::Point affine(); inline bool is_finite() { return pt[2] != 0; } // FIXME: Should we allow for some tolerance? gchar *coord_string(); inline void print(gchar const *s) const { g_print ("%s(%8.2f : %8.2f : %8.2f)\n", s, pt[0], pt[1], pt[2]); } |
