Lines Matching refs:klm
328 void GrPathUtils::getConicKLM(const SkPoint p[3], const SkScalar weight, SkScalar klm[9]) {
330 klm[0] = p[2].fY - p[0].fY;
331 klm[1] = p[0].fX - p[2].fX;
332 klm[2] = (p[2].fX - p[0].fX) * p[0].fY - (p[2].fY - p[0].fY) * p[0].fX;
334 klm[3] = w2 * (p[1].fY - p[0].fY);
335 klm[4] = w2 * (p[0].fX - p[1].fX);
336 klm[5] = w2 * (p[1].fX * p[0].fY - p[0].fX * p[1].fY);
338 klm[6] = w2 * (p[2].fY - p[1].fY);
339 klm[7] = w2 * (p[1].fX - p[2].fX);
340 klm[8] = w2 * (p[2].fX * p[1].fY - p[1].fX * p[2].fY);
345 scale = SkMaxScalar(scale, SkScalarAbs(klm[i]));
350 klm[i] *= scale;
579 // Solves linear system to extract klm
723 int GrPathUtils::chopCubicAtLoopIntersection(const SkPoint src[4], SkPoint dst[10], SkScalar klm[9],
766 if (klm && klm_rev) {
803 calc_cubic_klm(src, controlK, controlL, controlM, klm, &klm[3], &klm[6]);
808 void GrPathUtils::getCubicKLM(const SkPoint p[4], SkScalar klm[9]) {
827 calc_cubic_klm(p, controlK, controlL, controlM, klm, &klm[3], &klm[6]);