Flutter Engine
The Flutter Engine
|
#include <SkCubics.h>
Static Public Member Functions | |
static int | RootsReal (double A, double B, double C, double D, double solution[3]) |
static int | RootsValidT (double A, double B, double C, double D, double solution[3]) |
static int | BinarySearchRootsValidT (double A, double B, double C, double D, double solution[3]) |
static double | EvalAt (double A, double B, double C, double D, double t) |
static double | EvalAt (double coefficients[4], double t) |
Utilities for dealing with cubic formulas with one variable: f(t) = A*t^3 + B*t^2 + C*t + d
Definition at line 16 of file SkCubics.h.
|
static |
Puts up to 3 real solutions to the equation A*t^3 + B*t^2 + C*t + D = 0 in the provided array, with the constraint that t is in the range [0.0, 1.0], and returns how many roots that was. This is a slower method than RootsValidT, but more accurate in circumstances where floating point error gets too big.
Definition at line 208 of file SkCubics.cpp.
|
inlinestatic |
Evaluates the cubic function with the 4 provided coefficients and the provided variable.
Definition at line 51 of file SkCubics.h.
|
inlinestatic |
Definition at line 55 of file SkCubics.h.
|
static |
Puts up to 3 real solutions to the equation A*t^3 + B*t^2 + C*t + d = 0 in the provided array and returns how many roots that was.
Definition at line 38 of file SkCubics.cpp.
|
static |
Puts up to 3 real solutions to the equation A*t^3 + B*t^2 + C*t + D = 0 in the provided array, with the constraint that t is in the range [0.0, 1.0], and returns how many roots that was.
Definition at line 127 of file SkCubics.cpp.