Careful, you may have to shade your eyes
[ipdf/code.git] / src / real.h
index 2be3fdd..b766558 100644 (file)
@@ -88,6 +88,7 @@ namespace IPDF
                Real y;
                Vec2() : x(0), y(0) {}
                Vec2(Real _x, Real _y) : x(_x), y(_y) {}
+               Vec2(const std::pair<Real, Real> & p) : x(p.first), y(p.second) {}
        
                bool operator==(const Vec2& other) const { return (x == other.x) && (y == other.y); }
                bool operator!=(const Vec2& other) const { return !(*this == other); }

UCC git Repository :: git.ucc.asn.au