Searched refs:y0 (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd.c671 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { argument
678 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
679 /* adjust x0 to be on the left boundary (ie to be zero), and y0 to match */
680 *y0 -= (int)(m * *x0);
693 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
694 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */
705 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
711 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */

Completed in 8 milliseconds