Lines Matching defs:cubic
9 static bool rotate(const SkDCubic& cubic, int zero, int index, SkDCubic& rotPath) {
10 double dy = cubic[index].fY - cubic[zero].fY;
11 double dx = cubic[index].fX - cubic[zero].fX;
16 rotPath = cubic;
18 rotPath[index].fY = cubic[zero].fY;
22 if (approximately_equal(cubic[side1].fY, cubic[zero].fY)) {
23 rotPath[side1].fY = cubic[zero].fY;
25 if (approximately_equal(cubic[side2].fY, cubic[zero].fY)) {
26 rotPath[side2].fY = cubic[zero].fY;
32 rotPath[i].fX = cubic[i].fX * dx + cubic[i].fY * dy;
33 rotPath[i].fY = cubic[i].fY * dx - cubic[i].fX * dy;
44 /* Given a cubic, find the convex hull described by the end and control points.