git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Classify Beziers, use DeCasteljau for CPU renderer
[ipdf/code.git]
/
src
/
real.h
diff --git
a/src/real.h
b/src/real.h
index
2be3fdd
..
322b02b
100644
(file)
--- a/
src/real.h
+++ b/
src/real.h
@@
-81,13
+81,14
@@
namespace IPDF
r *= a;
return r;
}
r *= a;
return r;
}
-
struct Vec2
{
Real x;
Real y;
Vec2() : x(0), y(0) {}
Vec2(Real _x, Real _y) : x(_x), y(_y) {}
struct Vec2
{
Real x;
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) {}
+ Vec2(const std::pair<int64_t, int64_t> & 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); }
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