Classify Beziers, use DeCasteljau for CPU renderer
[ipdf/code.git] / src / rational.h
index b019505..f9157c7 100644 (file)
@@ -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