Lines Matching refs:y2
10 …erpolatedTriangle_X(PetscDraw_X *win, int x1, int y_1, int t1, int x2, int y2, int t2, int x3, int… in PetscDrawInterpolatedTriangle_X() argument
22 if (y_1 < 0 && y2 < 0 && y3 < 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X()
24 if (y_1 > win->h && y2 > win->h && y3 > win->h) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X()
38 if (y_1 > y2) { in PetscDrawInterpolatedTriangle_X()
39 SWAP(y_1, y2); in PetscDrawInterpolatedTriangle_X()
48 if (y2 > y3) { in PetscDrawInterpolatedTriangle_X()
49 SWAP(y2, y3); in PetscDrawInterpolatedTriangle_X()
56 if (y2 != y_1) R_y2_y_1 = 1.0 / ((PetscReal)(y2 - y_1)); in PetscDrawInterpolatedTriangle_X()
64 for (y = y_1; y <= y2; y++) { in PetscDrawInterpolatedTriangle_X()
98 if (y2 >= y3) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X()
99 if (y_1 < y2) { in PetscDrawInterpolatedTriangle_X()
101 y_1 = y2; in PetscDrawInterpolatedTriangle_X()
109 if (y3 != y2) R_y3_y2 = 1.0 / ((PetscReal)(y3 - y2)); in PetscDrawInterpolatedTriangle_X()
114 for (y = y2; y <= y3; y++) { in PetscDrawInterpolatedTriangle_X()
117 lfrac = ((PetscReal)(y - y2)) * R_y3_y2; in PetscDrawInterpolatedTriangle_X()