Home
last modified time | relevance | path

Searched refs:y_2 (Results 1 – 5 of 5) sorted by relevance

/petsc/src/sys/classes/draw/impls/image/
H A Ddrawimage.h36 static inline void PetscImageDrawLine(PetscImage img, int x_1, int y_1, int x_2, int y_2, int c) in PetscImageDrawLine() argument
38 if (y_1 == y_2) { in PetscImageDrawLine()
48 if (y_2 - y_1 < 0) { in PetscImageDrawLine()
50 y_1 = y_2; in PetscImageDrawLine()
51 y_2 = tmp; in PetscImageDrawLine()
53 while (y_1 <= y_2) PetscImageDrawPixel(img, x_1, y_1++, c); in PetscImageDrawLine()
57 int dy = PetscAbs(y_2 - y_1), sy = (y_2 - y_1) >= 0 ? +1 : -1; in PetscImageDrawLine()
61 if (x_1 == x_2 && y_1 == y_2) break; in PetscImageDrawLine()
108 …cImageDrawTriangle(PetscImage img, int x_1, int y_1, int t_1, int x_2, int y_2, int t_2, int x_3, … in PetscImageDrawTriangle() argument
120 if (y_1 < ymin && y_2 < ymin && y_3 < ymin) return; in PetscImageDrawTriangle()
[all …]
H A Ddrawimage.c123 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()
[all …]
/petsc/src/sys/classes/draw/impls/x/
H A Dxops.c85 int x_1, y_1, x_2, y_2; in PetscDrawLine_X() local
92 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawLine_X()
93 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_1, y_1, x_2, y_2); in PetscDrawLine_X()
100 int x_1, y_1, x_2, y_2; in PetscDrawArrow_X() local
107 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawArrow_X()
108 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_1, y_1, x_2, y_2); in PetscDrawArrow_X()
109 if (x_1 == x_2 && y_1 == y_2) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawArrow_X()
110 if (x_1 == x_2 && PetscAbs(y_1 - y_2) > 7) { in PetscDrawArrow_X()
111 if (y_2 > y_1) { in PetscDrawArrow_X()
112 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_2, y_2, x_2 - 3, y_2 - 3); in PetscDrawArrow_X()
[all …]
/petsc/doc/manual/
H A Dksp.md1196 $x_1,y_1,z_1,x_2,y_2,...$).
H A Dtao.md2531 residual vectors $\{ F(y_1), F(y_2), \cdots \}$ to form an