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
/
rational.h
diff --git
a/src/rational.h
b/src/rational.h
index
b019505
..
f9157c7
100644
(file)
--- a/
src/rational.h
+++ b/
src/rational.h
@@
-77,6
+77,8
@@
struct Rational
{
Simplify();
}
+
+
Rational(const T & _P, const T & _Q) : P(_P), Q(_Q)
{
@@
-174,7
+176,7
@@
struct Rational
double ToDouble() const
{
T num = P, denom = Q;
- while (Tabs(num) > T(
DBL_MAX
))
+ while (Tabs(num) > T(
1e10
))
{
num /= T(16);
denom /= T(16);
@@
-206,8
+208,6
@@
struct Rational
-
-
}
#endif //_RATIONAL_H
UCC
git Repository :: git.ucc.asn.au