diff --git a/src/2geom/point.h b/src/2geom/point.h
index e6e74242d5d7c4adae2982307fb1859ef15b2da3..d89b53f83c632425513c6b5aa30f690eed75a12f 100644 (file)
--- a/src/2geom/point.h
+++ b/src/2geom/point.h
#include <iostream>
#include <2geom/coord.h>
+#include <2geom/isnan.h>
#include <2geom/utils.h>
namespace Geom {
Coord _pt[2];
public:
+ /// The default constructor creates an Point(0,0) DO NOT RELY ON THIS, BEST NOT TO USE THIS CONSTRUCTOR
inline Point()
{ _pt[X] = _pt[Y] = 0; }
void normalize();
+ inline bool isFinite() const {
+ for ( unsigned i = 0 ; i < 2 ; ++i ) {
+ if(!IS_FINITE(_pt[i])) return false;
+ }
+ return true;
+ }
+
inline Point operator+(Point const &o) const {
return Point(_pt[X] + o._pt[X], _pt[Y] + o._pt[Y]);
}