summaryrefslogtreecommitdiffstats
path: root/src/2geom/point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/point.cpp')
-rw-r--r--src/2geom/point.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/2geom/point.cpp b/src/2geom/point.cpp
index e2662becd..bcdbab429 100644
--- a/src/2geom/point.cpp
+++ b/src/2geom/point.cpp
@@ -35,6 +35,7 @@
#include <assert.h>
#include <math.h>
+#include <2geom/coord.h>
#include <2geom/point.h>
#include <2geom/transforms.h>
@@ -230,6 +231,13 @@ Point constrain_angle(Point const &A, Point const &B, unsigned int n, Point cons
return A + dir * Rotate(k * 2.0 * M_PI / (double)n) * L2(diff);
}
+std::ostream &operator<<(std::ostream &out, const Geom::Point &p)
+{
+ out << "(" << format_coord_nice(p[X]) << ", "
+ << format_coord_nice(p[Y]) << ")";
+ return out;
+}
+
} // end namespace Geom
/*