Skia
2D Graphics Library

Fast evaluation of a cubic easein / easeout curve. More...
#include <SkCubicMap.h>
Public Member Functions  
SkCubicMap (SkPoint p1, SkPoint p2)  
float  computeYFromX (float x) const 
SkPoint  computeFromT (float t) const 
Static Public Member Functions  
static bool  IsLinear (SkPoint p1, SkPoint p2) 
Fast evaluation of a cubic easein / easeout curve.
This is defined as a parametric cubic curve inside the unit square.
pt[0] is implicitly { 0, 0 } pt[3] is implicitly { 1, 1 } pts[1,2].X are inside the unit [0..1]
SkPoint SkCubicMap::computeFromT  (  float  t  )  const 
float SkCubicMap::computeYFromX  (  float  x  )  const 