Lines Matching refs:cubic
12 void hodograph(const Cubic& cubic, Quadratic& hodo) {
13 hodo[0].x = 3 * (cubic[1].x - cubic[0].x);
14 hodo[0].y = 3 * (cubic[1].y - cubic[0].y);
15 hodo[1].x = 3 * (cubic[2].x - cubic[1].x);
16 hodo[1].y = 3 * (cubic[2].y - cubic[1].y);
17 hodo[2].x = 3 * (cubic[3].x - cubic[2].x);
18 hodo[2].y = 3 * (cubic[3].y - cubic[2].y);
22 void secondHodograph(const Cubic& cubic, _Line& hodo2) {
24 hodograph(cubic, hodo);
28 // The number of line segments required to approximate the cubic
30 double subDivisions(const Cubic& cubic) {
32 secondHodograph(cubic, hodo2);