Lines Matching refs:seq
102 int seq[4] = { -1, -1, -1, -1 };
174 seq[0] = bottom;
175 seq[1] = right;
176 seq[2] = top;
177 seq[3] = left;
189 float dp0 = base_a * vect[seq[0]].x + base_b * vect[seq[0]].y;
190 float dp1 = -base_b * vect[seq[1]].x + base_a * vect[seq[1]].y;
191 float dp2 = -base_a * vect[seq[2]].x - base_b * vect[seq[2]].y;
192 float dp3 = base_b * vect[seq[3]].x - base_a * vect[seq[3]].y;
194 float cosalpha = dp0 * inv_vect_length[seq[0]];
201 cosalpha = dp1 * inv_vect_length[seq[1]];
203 cosalpha = dp2 * inv_vect_length[seq[2]];
205 cosalpha = dp3 * inv_vect_length[seq[3]];
211 int pindex = seq[main_element];
236 seq[main_element] += 1;
237 seq[main_element] = (seq[main_element] == n) ? 0 : seq[main_element];
250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x;
251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y;
271 float dx = points[seq[1]].x - points[seq[3]].x;
272 float dy = points[seq[1]].y - points[seq[3]].y;
278 dx = points[seq[2]].x - points[seq[0]].x;
279 dy = points[seq[2]].y - points[seq[0]].y;
291 ((int *) buf)[0] = seq[3];
297 ((int *) buf)[5] = seq[0];