src/gui/painting/qbezier_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   164     c *= 3. * m_t;
   164     c *= 3. * m_t;
   165 }
   165 }
   166 
   166 
   167 inline QPointF QBezier::pointAt(qreal t) const
   167 inline QPointF QBezier::pointAt(qreal t) const
   168 {
   168 {
   169     Q_ASSERT(t >= 0);
       
   170     Q_ASSERT(t <= 1);
       
   171 #if 1
   169 #if 1
   172     qreal a, b, c, d;
   170     qreal a, b, c, d;
   173     coefficients(t, a, b, c, d);
   171     coefficients(t, a, b, c, d);
   174     return QPointF(a*x1 + b*x2 + c*x3 + d*x4, a*y1 + b*y2 + c*y3 + d*y4);
   172     return QPointF(a*x1 + b*x2 + c*x3 + d*x4, a*y1 + b*y2 + c*y3 + d*y4);
   175 #else
   173 #else