Go to the source code of this file.
◆ conic_deriv_coeff()
static void conic_deriv_coeff |
( |
const double |
src[], |
|
|
SkScalar |
w, |
|
|
double |
coeff[3] |
|
) |
| |
|
static |
Definition at line 22 of file SkPathOpsConic.cpp.
24 {
25 const double P20 =
src[4] -
src[0];
26 const double P10 =
src[2] -
src[0];
27 const double wP10 =
w * P10;
28 coeff[0] =
w * P20 - P20;
29 coeff[1] = P20 - 2 * wP10;
30 coeff[2] = wP10;
31}
◆ conic_eval_denominator()
static double conic_eval_denominator |
( |
SkScalar |
w, |
|
|
double |
t |
|
) |
| |
|
static |
◆ conic_eval_numerator()
static double conic_eval_numerator |
( |
const double |
src[], |
|
|
SkScalar |
w, |
|
|
double |
t |
|
) |
| |
|
static |
Definition at line 73 of file SkPathOpsConic.cpp.
73 {
76 double src2w =
src[2] *
w;
78 double A =
src[4] - 2 * src2w +
C;
79 double B = 2 * (src2w -
C);
80 return (
A * t +
B) * t +
C;
81}
◆ conic_eval_tan()
static double conic_eval_tan |
( |
const double |
coord[], |
|
|
SkScalar |
w, |
|
|
double |
t |
|
) |
| |
|
static |
Definition at line 33 of file SkPathOpsConic.cpp.
33 {
34 double coeff[3];
36 return t * (t * coeff[0] + coeff[1]) + coeff[2];
37}
static void conic_deriv_coeff(const double src[], SkScalar w, double coeff[3])