For an index, return y-coordinate of next nonhorizontal line
| 89 | |
| 90 | // For an index, return y-coordinate of next nonhorizontal line |
| 91 | ILint yNext(ILint k, ILint cnt, ILpointi *pts) |
| 92 | { |
| 93 | ILint j; |
| 94 | |
| 95 | if ((k+1) > (cnt-1)) |
| 96 | j = 0; |
| 97 | else |
| 98 | j = k + 1; |
| 99 | |
| 100 | while (pts[k].y == pts[j].y) { |
| 101 | if ((j+1) > (cnt-1)) |
| 102 | j = 0; |
| 103 | else |
| 104 | j++; |
| 105 | } |
| 106 | |
| 107 | return pts[j].y; |
| 108 | } |
| 109 | |
| 110 | |
| 111 | // Store lower-y coordinate and inverse slope for each edge. Adjust |