Flutter Engine
The Flutter Engine
|
#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 ease-in / ease-out 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]
Definition at line 23 of file SkCubicMap.h.
Definition at line 88 of file SkCubicMap.cpp.
SkPoint SkCubicMap::computeFromT | ( | float | t | ) | const |
Definition at line 108 of file SkCubicMap.cpp.
float SkCubicMap::computeYFromX | ( | float | x | ) | const |
Definition at line 61 of file SkCubicMap.cpp.
Definition at line 27 of file SkCubicMap.h.