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

/PHP_TRUNK/ext/gd/libgd/
H A Dgd.c669 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { argument
676 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
677 /* adjust x0 to be on the left boundary (ie to be zero), and y0 to match */
678 *y0 -= (int)(m * *x0);
691 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
692 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */
703 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */
709 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */

Completed in 6 milliseconds