Home | History | Annotate | Download | only in utils
      1 #ifndef SkCubicInterval_DEFINED
      2 #define SkCubicInterval_DEFINED
      3 
      4 #include "SkPoint.h"
      5 
      6 SkScalar SkEvalCubicInterval(SkScalar x1, SkScalar y1,
      7                              SkScalar x2, SkScalar y2,
      8                              SkScalar unitX);
      9 
     10 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) {
     11     return SkEvalCubicInterval(pts[0].fX, pts[0].fY,
     12                                pts[1].fX, pts[1].fY, x);
     13 }
     14 
     15 #endif
     16 
     17