Lines Matching refs:index
23 size_t index;
26 for (index = 1; index < 4; ++index) {
27 if (cubic[yMin].y > cubic[index].y || (cubic[yMin].y == cubic[index].y
28 && cubic[yMin].x > cubic[index].x)) {
29 yMin = index;
36 for (index = 0; index < 4; ++index) {
37 if (index == yMin) {
40 // rotate line from (yMin, index) to axis
43 int mask = other_two(yMin, index);
45 int side2 = index ^ mask;
47 if (!rotate(cubic, yMin, index, rotPath)) { // ! if cbc[yMin]==cbc[idx]
58 midX = index;
60 backupYMin = index;
109 int index;
110 for (index = 1; index < 4; ++index) {
111 projectedY[index] = (cubic[index].y - cubic[0].y) * (3.0 / index);
115 for (index = 2; index < 4; ++index) {
116 if (approximately_greater_or_equal(projectedY[lower0Index], projectedY[index])) {
117 lower0Index = index;
119 if (approximately_lesser_or_equal(projectedY[upper0Index], projectedY[index])) {
120 upper0Index = index;
125 for (index = 0; index < 3; ++index) {
126 projectedY[index] = (cubic[3].y - cubic[index].y) * (3.0 / (3 - index));
131 for (index = 1; index > -1; --index) {
132 if (approximately_greater_or_equal(projectedY[lower3Index], projectedY[index])) {
133 lower3Index = index;
135 if (approximately_lesser_or_equal(projectedY[upper3Index], projectedY[index])) {
136 upper3Index = index;