Lines Matching refs:y_2
123 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawLine_Image() local
124 PetscImageDrawLine(img, x_1, y_1, x_2, y_2, c); in PetscDrawLine_Image()
137 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawArrow_Image() local
138 if (x_1 == x_2 && y_1 == y_2) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawArrow_Image()
139 PetscImageDrawLine(img, x_1, y_1, x_2, y_2, c); in PetscDrawArrow_Image()
140 if (x_1 == x_2 && PetscAbs(y_1 - y_2) > 7) { in PetscDrawArrow_Image()
141 if (y_2 > y_1) { in PetscDrawArrow_Image()
142 PetscImageDrawLine(img, x_2, y_2, x_2 - 3, y_2 - 3, c); in PetscDrawArrow_Image()
143 PetscImageDrawLine(img, x_2, y_2, x_2 + 3, y_2 - 3, c); in PetscDrawArrow_Image()
145 PetscImageDrawLine(img, x_2, y_2, x_2 - 3, y_2 + 3, c); in PetscDrawArrow_Image()
146 PetscImageDrawLine(img, x_2, y_2, x_2 + 3, y_2 + 3, c); in PetscDrawArrow_Image()
149 if (y_1 == y_2 && PetscAbs(x_1 - x_2) > 7) { in PetscDrawArrow_Image()
151 PetscImageDrawLine(img, x_2 - 3, y_2 - 3, x_2, y_2, c); in PetscDrawArrow_Image()
152 PetscImageDrawLine(img, x_2 - 3, y_2 + 3, x_2, y_2, c); in PetscDrawArrow_Image()
154 PetscImageDrawLine(img, x_2, y_2, x_2 + 3, y_2 - 3, c); in PetscDrawArrow_Image()
155 PetscImageDrawLine(img, x_2, y_2, x_2 + 3, y_2 + 3, c); in PetscDrawArrow_Image()
207 int y_1 = YTRANS(draw, img, Y_1), y_2 = YTRANS(draw, img, Y_2), y_3 = YTRANS(draw, img, Y_3); in PetscDrawTriangle_Image() local
208 PetscImageDrawTriangle(img, x_1, y_1, c1, x_2, y_2, c2, x_3, y_3, c3); in PetscDrawTriangle_Image()