Home
last modified time | relevance | path

Searched refs:y_1 (Results 1 – 8 of 8) 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()
45 while (x_1 <= x_2) PetscImageDrawPixel(img, x_1++, y_1, c); in PetscImageDrawLine()
48 if (y_2 - y_1 < 0) { in PetscImageDrawLine()
49 int tmp = y_1; in PetscImageDrawLine()
50 y_1 = y_2; 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()
60 PetscImageDrawPixel(img, x_1, y_1, c); in PetscImageDrawLine()
61 if (x_1 == x_2 && y_1 == y_2) break; in PetscImageDrawLine()
[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()
149 if (y_1 == y_2 && PetscAbs(x_1 - x_2) > 7) { 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()
/petsc/src/sys/classes/draw/impls/x/
H A Dxtone.c10 PetscErrorCode PetscDrawInterpolatedTriangle_X(PetscDraw_X *win, int x1, int y_1, int t1, int x2, i… 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()
43 if (y_1 > y3) { in PetscDrawInterpolatedTriangle_X()
44 SWAP(y_1, y3); in PetscDrawInterpolatedTriangle_X()
56 if (y2 != y_1) R_y2_y_1 = 1.0 / ((PetscReal)(y2 - y_1)); in PetscDrawInterpolatedTriangle_X()
58 if (y3 != y_1) R_y3_y_1 = 1.0 / ((PetscReal)(y3 - y_1)); in PetscDrawInterpolatedTriangle_X()
64 for (y = y_1; y <= y2; y++) { in PetscDrawInterpolatedTriangle_X()
[all …]
H A Dxops.c85 int x_1, y_1, x_2, y_2; in PetscDrawLine_X() local
91 y_1 = YTRANS(draw, XiWin, yl); 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
106 y_1 = YTRANS(draw, XiWin, yl); 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()
119 if (y_1 == y_2 && PetscAbs(x_1 - x_2) > 7) { in PetscDrawArrow_X()
[all …]
/petsc/src/sys/classes/draw/interface/
H A Ddtri.c24 PetscErrorCode PetscDrawTriangle(PetscDraw draw, PetscReal x1, PetscReal y_1, PetscReal x2, PetscRe… in PetscDrawTriangle() argument
28 PetscUseTypeMethod(draw, triangle, x1, y_1, x2, y2, x3, y3, c1, c2, c3); in PetscDrawTriangle()
222 PetscReal x1, x2, x3, x4, y_1, y2, y3, y4; in PetscDrawTensorContourPatch() local
230 y_1 = y[j]; in PetscDrawTensorContourPatch()
233 y2 = y_1; in PetscDrawTensorContourPatch()
242 PetscCall(PetscDrawTriangle(draw, x1, y_1, x2, y2, x3, y3, c1, c2, c3)); in PetscDrawTensorContourPatch()
243 PetscCall(PetscDrawTriangle(draw, x1, y_1, x3, y3, x4, y4, c1, c3, c4)); in PetscDrawTensorContourPatch()
/petsc/src/dm/impls/da/
H A Dgr2.c32 PetscReal min, max, x1, x2, x3, x4, y_1, y2, y3, y4; in VecView_MPI_Draw_DA2d_Zoom() local
51 y_1 = PetscRealPart(xy[2 * id + 1]); in VecView_MPI_Draw_DA2d_Zoom()
69 PetscCall(PetscDrawTriangle(draw, x1, y_1, x2, y2, x3, y3, c1, c2, c3)); in VecView_MPI_Draw_DA2d_Zoom()
70 PetscCall(PetscDrawTriangle(draw, x1, y_1, x3, y3, x4, y4, c1, c3, c4)); in VecView_MPI_Draw_DA2d_Zoom()
72 PetscCall(PetscDrawLine(draw, x1, y_1, x2, y2, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
75 PetscCall(PetscDrawLine(draw, x4, y4, x1, y_1, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
/petsc/doc/manual/
H A Dtao.md2531 residual vectors $\{ F(y_1), F(y_2), \cdots \}$ to form an
2547 on a common interpolation set $\{y_1, \cdots , y_{l_k}\}$ of size
H A Dksp.md1196 $x_1,y_1,z_1,x_2,y_2,...$).