X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Freal.h;h=b76655884cfa90261cd414114bfb542941677bcc;hp=2be3fdd44bd0e7ca45865c8fd3980595a52564a6;hb=35f1190c8c8036ed11180656769cf0c1cbf7c2b3;hpb=a69d8466e4ad4dd92488798582e680ae31029038 diff --git a/src/real.h b/src/real.h index 2be3fdd..b766558 100644 --- a/src/real.h +++ b/src/real.h @@ -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 & 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); }