MCPcopy Create free account
hub / github.com/DentonW/DevIL / yNext

Function yNext

DevIL/src-ILU/src/ilu_region.cpp:91–108  ·  view source on GitHub ↗

For an index, return y-coordinate of next nonhorizontal line

Source from the content-addressed store, hash-verified

89
90// For an index, return y-coordinate of next nonhorizontal line
91ILint 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

Callers 1

BuildEdgeListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected