Lines Matching refs:pt

24   gdPoint pt[7];
111 pt[0] = gdArcClosest (width, height, s);
112 pt[0].x += cx;
113 pt[0].y += cy;
114 pt[1].x = cx + axis_pt[(i + 1) & 3].x;
115 pt[1].y = cy + axis_pt[(i + 1) & 3].y;
119 pt[2] = gdArcClosest (width, height, e);
120 pt[2].x += cx;
121 pt[2].y += cy;
124 gdImageFilledPolygon (im, pt, 3, color);
125 gdImagePolygon (im, pt, 3, color);
129 pt[3].x = cx;
130 pt[3].y = cy;
131 gdImageFilledPolygon (im, pt, 4, color);
132 gdImagePolygon (im, pt, 4, color);
138 pt[2].x = cx + axis_pt[(i + 2) & 3].x;
139 pt[2].y = cy + axis_pt[(i + 2) & 3].y;
143 pt[3] = gdArcClosest (width, height, e);
144 pt[3].x += cx;
145 pt[3].y += cy;
148 gdImageFilledPolygon (im, pt, 4, color);
149 gdImagePolygon (im, pt, 4, color);
153 pt[4].x = cx;
154 pt[4].y = cy;
155 gdImageFilledPolygon (im, pt, 5, color);
156 gdImagePolygon (im, pt, 5, color);
162 pt[3].x = cx + axis_pt[(i + 3) & 3].x;
163 pt[3].y = cy + axis_pt[(i + 3) & 3].y;
167 pt[4] = gdArcClosest (width, height, e);
168 pt[4].x += cx;
169 pt[4].y += cy;
172 gdImageFilledPolygon (im, pt, 5, color);
173 gdImagePolygon (im, pt, 5, color);
177 pt[5].x = cx;
178 pt[5].y = cy;
179 gdImageFilledPolygon (im, pt, 6, color);
180 gdImagePolygon (im, pt, 6, color);
186 pt[4].x = cx + axis_pt[(i + 4) & 3].x;
187 pt[4].y = cy + axis_pt[(i + 4) & 3].y;
190 pt[5] = gdArcClosest (width, height, e);
191 pt[5].x += cx;
192 pt[5].y += cy;
195 gdImageFilledPolygon (im, pt, 6, color);
196 gdImagePolygon (im, pt, 6, color);
200 pt[6].x = cx;
201 pt[6].y = cy;
202 gdImageFilledPolygon (im, pt, 7, color);
203 gdImagePolygon (im, pt, 7, color);
280 pt[0].x = w / 2;
281 pt[0].y = 0;
283 pt[2].x = 0;
284 pt[2].y = h / 2;
313 pt[0].x = (int) (x2 / 2);
314 pt[0].y = (int) (y2 / 2);
320 pt[2].x = (int) (x2 / 2);
321 pt[2].y = (int) (y2 / 2);
325 pt[1].x = (int) (x2 / 2);
326 pt[1].y = (int) (y2 / 2);
347 pt[0].x = (int) (x2 / 2);
348 pt[0].y = (int) (y2 / 2);
354 pt[2].x = (int) (x2 / 2);
355 pt[2].y = (int) (y2 / 2);
365 pt[3] = pt[0];
366 pt[4] = pt[1];
367 pt[5] = pt[2];
369 pt[0].x = cx + (flip_x ? (-pt[0].x) : pt[0].x);
370 pt[0].y = cy + (flip_y ? (-pt[0].y) : pt[0].y);
371 pt[1].x = cx;
372 pt[1].y = cy;
373 pt[2].x = cx + (flip_x ? (-pt[2].x) : pt[2].x);
374 pt[2].y = cy + (flip_y ? (-pt[2].y) : pt[2].y);
375 gdImageFilledPolygon (im, pt, 3, color);
376 gdImagePolygon (im, pt, 3, color);
378 pt[0] = pt[3];
379 pt[1] = pt[4];
380 pt[2] = pt[5];
387 pt[3] = pt[0];
388 pt[4] = pt[1];
389 pt[5] = pt[2];
391 pt[0].x = cx + (flip_x ? (-pt[0].x) : pt[0].x);
392 pt[0].y = cy + (flip_y ? (-pt[0].y) : pt[0].y);
393 pt[1].x = cx + (flip_x ? (-pt[1].x) : pt[1].x);
394 pt[1].y = cy + (flip_y ? (-pt[1].y) : pt[1].y);
395 pt[2].x = cx + (flip_x ? (-pt[2].x) : pt[2].x);
396 pt[2].y = cy + (flip_y ? (-pt[2].y) : pt[2].y);
397 gdImageFilledPolygon (im, pt, 3, color);
398 gdImagePolygon (im, pt, 3, color);
400 pt[0] = pt[3];
401 pt[2] = pt[4];
435 lg = lx2 * (pt[0].y - pt[2].y) - ly2 * (pt[0].x - pt[2].x);
436 lg = (lx2 - 1) * (pt[0].y - pt[2].y) - (ly2 + 2) * (pt[0].x - pt[2].x) - lg;
438 while (y2 < (2 * pt[2].y))
450 lg -= 2 * (pt[0].x - pt[2].x);
455 lg -= 2 * (pt[0].y - pt[2].y);
468 pt[0] = pt[4];
469 pt[2] = pt[5];
500 lg = lx2 * (pt[0].y - pt[2].y) - ly2 * (pt[0].x - pt[2].x);
501 lg = (lx2 + 2) * (pt[0].y - pt[2].y) - (ly2 - 1) * (pt[0].x - pt[2].x) - lg;
503 while (x2 < (2 * pt[0].x))
515 lg += 2 * (pt[0].y - pt[2].y);
520 lg += 2 * (pt[0].x - pt[2].x);
536 gdPoint pt;
567 pt.x = w / 2;
568 pt.y = 0;
569 return (pt);
573 pt.x = 0;
574 pt.y = h / 2;
575 return (pt);
579 pt.x = -w / 2;
580 pt.y = 0;
581 return (pt);
585 pt.x = 0;
586 pt.y = -h / 2;
587 return (pt);
590 pt.x = 0;
591 pt.y = 0;
652 pt.x = (int) (x2 / 2);
653 pt.y = (int) (y2 / 2);
679 pt.x = (int) (x2 / 2);
680 pt.y = (int) (y2 / 2);
687 pt.x = -pt.x;
689 pt.y = -pt.y;
691 return (pt);