Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/external/libvncserver/libvncserver/
Ddraw.c3 void rfbFillRect(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2,rfbPixel col) in rfbFillRect() argument
11 for(j=y1;j<y2;j++) in rfbFillRect()
14 rfbMarkRectAsModified(s,x1,y1,x2,y2); in rfbFillRect()
31 void rfbDrawLine(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2,rfbPixel col) in rfbDrawLine() argument
40 #define SWAPPOINTS { i=x1; x1=x2; x2=i; i=y1; y1=y2; y2=i; } in rfbDrawLine()
41 if(abs(x1-x2)<abs(y1-y2)) { in rfbDrawLine()
42 if(y1>y2) in rfbDrawLine()
44 for(i=y1;i<=y2;i++) in rfbDrawLine()
45 SETPIXEL(x1+(i-y1)*(x2-x1)/(y2-y1),i); in rfbDrawLine()
48 rfbMarkRectAsModified(s,x1,y1,x2+1,y2+1); in rfbDrawLine()
[all …]
Dselbox.c12 int x1,y1,x2,y2,textH,pageH; member
57 int y1 = m->y1+line*m->textH, y2 = y1+m->textH; in selPaintLine() local
58 if(y2>m->y2) in selPaintLine()
59 y2=m->y2; in selPaintLine()
60 rfbFillRect(m->screen,m->x1,y1,m->x2,y2,invert?m->colour:m->backColour); in selPaintLine()
62 rfbDrawStringWithClip(m->screen,m->font,m->x1+m->xhot,y2-1+m->yhot, in selPaintLine()
64 m->x1,y1,m->x2,y2, in selPaintLine()
103 m->x1,m->y1+lineEnd*m->textH,m->x2,m->y2, in selSelect()
189 if(x>=m->x1 && x<m->x2 && y>=m->y1 && y<m->y2) in selPtrAddEvent()
205 int x1,int y1,int x2,int y2, in rfbSelectBox() argument
[all …]
Dfont.c50 int x1,int y1,int x2,int y2, in rfbDrawCharWithClip() argument
75 if(y2<y+height) height-=y+height-y2; in rfbDrawCharWithClip()
106 int x1,int y1,int x2,int y2, in rfbDrawStringWithClip() argument
110 x+=rfbDrawCharWithClip(rfbScreen,font,x,y,*string,x1,y1,x2,y2, in rfbDrawStringWithClip()
131 void rfbFontBBox(rfbFontDataPtr font,unsigned char c,int* x1,int* y1,int* x2,int* y2) in rfbFontBBox() argument
136 *y2=*y1+font->metaData[c*5+2]+1; in rfbFontBBox()
144 int *x1, int *y1, int *x2, int *y2) in rfbWholeFontBBox() argument
149 (*x1)=(*y1)=INT_MAX; (*x2)=(*y2)=1-(INT_MAX); in rfbWholeFontBBox()
157 if(-m[i*5+4]>(*y2)) in rfbWholeFontBBox()
158 (*y2)=-m[i*5+4]; in rfbWholeFontBBox()
[all …]
/external/libvncserver/examples/
Dzippy.c13 void blank_framebuffer(char* frame_buffer, int x1, int y1, int x2, int y2);
15 void draw_primary_colors (char* frame_buffer, int x1, int y1, int x2, int y2);
16 void draw_primary_colours_generic(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2);
17 void draw_primary_colours_generic_fast(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2);
49 void blank_framebuffer(char* frame_buffer, int x1, int y1, int x2, int y2) in blank_framebuffer() argument
55 void draw_primary_colors (char* frame_buffer, int x1, int y1, int x2, int y2) in draw_primary_colors() argument
58 for (i=y1; i < y2; i++){ in draw_primary_colors()
61 if (i < y2 ) { in draw_primary_colors()
66 if (i < y2/3*2) { in draw_primary_colors()
71 if (i < y2/3) { in draw_primary_colors()
[all …]
Dexample.c98 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2) in drawline() argument
101 i=x1-x2; j=y1-y2; in drawline()
110 if(y1>y2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; } in drawline()
111 for(j=y1;j<=y2;j++) in drawline()
113 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff; in drawline()
115 if(x1>x2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; } in drawline()
118 buffer[(y1+(i-x1)*(y2-y1)/(x2-x1))*rowstride+i*bpp+j]=0xff; in drawline()
130 int i,j,x1,x2,y1,y2; in doptr() local
144 y2=y+buttonMask; if(y2>maxy) y2=maxy; in doptr()
147 for(j=y1;j<y2;j++) in doptr()
[all …]
/external/chromium-trace/catapult/third_party/flot/
Djquery.flot.image.js130 x2 = points[i + 3], y2 = points[i + 4],
145 if (y1 > y2) {
146 tmp = y2;
147 y2 = y1;
157 tmp = 0.5 * (y2-y1) / (img.height - 1);
159 y2 += tmp;
163 if (x1 == x2 || y1 == y2 ||
165 y1 >= yaxis.max || y2 <= yaxis.min)
180 sy2 += (sy1 - sy2) * (yaxis.min - y1) / (y2 - y1);
184 if (y2 > yaxis.max) {
[all …]
Djquery.flot.image.min.js7y2=points[i+4],xaxis=series.xaxis,yaxis=series.yaxis,tmp;if(!img||img.width<=0||img.height<=0)cont…
/external/pdfium/third_party/agg23/
Dagg_basics.h69 T y2; member
72 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} in rect_base()
81 if(y1 > y2) { in normalize()
83 y1 = y2; in normalize()
84 y2 = t; in normalize()
93 if(y2 > r.y2) { in clip()
94 y2 = r.y2; in clip()
102 return x1 <= x2 && y1 <= y2; in clip()
106 return x1 <= x2 && y1 <= y2; in is_valid()
116 if(r.y2 > r2.y2) { in intersect_rectangles()
[all …]
Dagg_curves.h26 FX_FLOAT x2, FX_FLOAT y2, in curve4_points()
33 cp[3] = y2; in curve4_points()
40 FX_FLOAT x2, FX_FLOAT y2, in init()
47 cp[3] = y2; in init()
69 FX_FLOAT x2, FX_FLOAT y2, in curve4_div() argument
74 init(x1, y1, x2, y2, x3, y3, x4, y4); in curve4_div()
87 FX_FLOAT x2, FX_FLOAT y2,
125 FX_FLOAT x2, FX_FLOAT y2,
129 FX_FLOAT x2, FX_FLOAT y2,
143 FX_FLOAT x2, FX_FLOAT y2, in curve4() argument
[all …]
Dagg_curves.cpp31 FX_FLOAT x2, FX_FLOAT y2, in init() argument
38 bezier(x1, y1, x2, y2, x3, y3, x4, y4); in init()
42 FX_FLOAT x2, FX_FLOAT y2, in recursive_bezier() argument
51 FX_FLOAT y12 = (y1 + y2) / 2; in recursive_bezier()
53 FX_FLOAT y23 = (y2 + y3) / 2; in recursive_bezier()
64 FX_FLOAT d2 = FXSYS_fabs(FXSYS_Mul(x2 - x4, dy) - FXSYS_Mul(y2 - y4, dx)); in recursive_bezier()
70 FXSYS_fabs(y1 + y3 - y2 - y2) + in recursive_bezier()
72 FXSYS_fabs(y2 + y4 - y3 - y3) <= m_distance_tolerance_manhattan) { in recursive_bezier()
103 FX_FLOAT x2, FX_FLOAT y2, in bezier() argument
108 recursive_bezier(x1, y1, x2, y2, x3, y3, x4, y4, 0); in bezier()
Dagg_math.h26 FX_FLOAT x2, FX_FLOAT y2, in calc_point_location() argument
29 return FXSYS_Mul(x - x2, y2 - y1) - FXSYS_Mul(y - y2, x2 - x1); in calc_point_location()
31 AGG_INLINE FX_FLOAT calc_distance(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2) in calc_distance() argument
34 FX_FLOAT dy = y2 - y1; in calc_distance()
38 FX_FLOAT x2, FX_FLOAT y2, in calc_line_point_distance() argument
42 FX_FLOAT dy = y2 - y1; in calc_line_point_distance()
47 return FXSYS_MulDiv(x - x2, dy, d) - FXSYS_MulDiv(y - y2, dx, d); in calc_line_point_distance()
/external/eigen/Eigen/src/Core/arch/SSE/
DMathFunctions.h83 Packet4f y, y1, y2; variable
86 y2 = pmadd(p4f_cephes_log_p6, x, p4f_cephes_log_p7);
89 y2 = pmadd(y2, x, p4f_cephes_log_p8);
91 y = pmadd(y, x3, y2);
98 y2 = pmul(e, p4f_cephes_log_q2);
100 x = padd(x, y2);
342 Packet4f y2 = p4f_sincof_p0; variable
343 y2 = pmadd(y2, z, p4f_sincof_p1);
344 y2 = pmadd(y2, z, p4f_sincof_p2);
345 y2 = pmul(y2, z);
[all …]
/external/llvm/test/CodeGen/ARM/
Dbfi.ll81 %y2 = and i32 %y, 4294967040 ; 0xFFFFFF00
83 %or = or i32 %y2, 16
85 %sel = select i1 %cmp, i32 %or, i32 %y2
93 %y2 = and i32 %y, 4294967040 ; 0xFFFFFF00
95 %or = or i32 %y2, 48
97 %sel = select i1 %cmp, i32 %or, i32 %y2
104 %y2 = and i32 %y, 4294967040 ; 0xFFFFFF00
106 %or = or i32 %y2, 48
108 %sel = select i1 %cmp, i32 %y2, i32 %or
115 %y2 = and i32 %y, 4294967040 ; 0xFFFFFF00
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
DbtGImpactMassUtil.h39 btScalar y2 = transform.getOrigin()[1]; in gim_inertia_add_transformed() local
40 y2*= y2; in gim_inertia_add_transformed()
44 btScalar ix = rotatedTensor[0][0]*(y2+z2); in gim_inertia_add_transformed()
46 btScalar iz = rotatedTensor[2][2]*(x2+y2); in gim_inertia_add_transformed()
54 btScalar y2 = point[1]*point[1]; in gim_get_point_inertia() local
56 return btVector3(mass*(y2+z2),mass*(x2+z2),mass*(x2+y2)); in gim_get_point_inertia()
DbtGImpactShape.cpp61 const btScalar y2 = ly*ly; in calculateLocalInertia() local
65 inertia = scaledmass * (btVector3(y2+z2,x2+z2,x2+y2)); in calculateLocalInertia()
100 const btScalar y2 = ly*ly; in calculateLocalInertia() local
104 inertia = scaledmass * (btVector3(y2+z2,x2+z2,x2+y2)); in calculateLocalInertia()
135 const btScalar y2 = ly*ly; in calculateLocalInertia()
139 inertia = scaledmass * (btVector3(y2+z2,x2+z2,x2+y2)); in calculateLocalInertia()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DGeometryUtils.java98 static public boolean colinear (float x1, float y1, float x2, float y2, float x3, float y3) { in colinear() argument
99 float dx21 = x2 - x1, dy21 = y2 - y1; in colinear()
100 float dx32 = x3 - x2, dy32 = y3 - y2; in colinear()
105 …static public Vector2 triangleCentroid (float x1, float y1, float x2, float y2, float x3, float y3… in triangleCentroid() argument
107 centroid.y = (y1 + y2 + y3) / 3; in triangleCentroid()
112 …static public Vector2 triangleCircumcenter (float x1, float y1, float x2, float y2, float x3, floa… in triangleCircumcenter() argument
113 float dx21 = x2 - x1, dy21 = y2 - y1; in triangleCircumcenter()
114 float dx32 = x3 - x2, dy32 = y3 - y2; in triangleCircumcenter()
120 float sqr1 = x1 * x1 + y1 * y1, sqr2 = x2 * x2 + y2 * y2, sqr3 = x3 * x3 + y3 * y3; in triangleCircumcenter()
125 static public float triangleArea (float x1, float y1, float x2, float y2, float x3, float y3) { in triangleArea() argument
[all …]
/external/fonttools/Lib/fontTools/pens/
DpointInsidePen.py90 x2, y2 = point
94 if y1 < y and y2 < y:
96 if y1 >= y and y2 >= y:
100 dy = y2 - y1
105 self._addIntersection(y2 > y1)
110 x2, y2 = bcp1
116 if y1 < y and y2 < y and y3 < y and y4 < y:
118 if y1 >= y and y2 >= y and y3 >= y and y4 >= y:
122 cy = (y2 - dy) * 3.0
123 by = (y3 - y2) * 3.0 - cy
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dbezier.c49 left->y2 = bez->y1 + t * (bez->y2 - bez->y1); in split_left()
52 left->y3 = bez->y2 + t * (bez->y3 - bez->y2); in split_left()
58 bez->y2 = left->y3 + t * (bez->y3 - left->y3); in split_left()
61 left->y3 = left->y2 + t * (left->y3 - left->y2); in split_left()
64 left->y4 = bez->y1 = left->y3 + t * (bez->y2 - left->y3); in split_left()
81 c = (bez->y2 + bez->y3) / 2; in split()
82 first_half->y2 = (bez->y1 + bez->y2) * 0.5; in split()
86 first_half->y3 = (first_half->y2 + c) * 0.5; in split()
87 second_half->y2 = (second_half->y3 + c) * 0.5; in split()
89 (first_half->y3 + second_half->y2) * 0.5; in split()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
DWeightMeshSpawnShapeValue.java54 x2 = vertices[p2Offset], y2 = vertices[p2Offset+1], z2 = vertices[p2Offset+2], in calculateWeights() local
56 float area = Math.abs((x1*(y2 - y3) + x2*(y3 - y1) + x3*(y1-y2))/2f); in calculateWeights()
57 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); in calculateWeights()
67 x2 = vertices[p2Offset], y2 = vertices[p2Offset+1], z2 = vertices[p2Offset+2], in calculateWeights() local
69 float area = Math.abs((x1*(y2 - y3) + x2*(y3 - y1) + x3*(y1-y2))/2f); in calculateWeights()
70 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); in calculateWeights()
83 t.y1 + a*(t.y2 - t.y1) + b*(t.y3 - t.y1), in spawnAux()
/external/libpng/contrib/tools/
Dgenpng.c179 double x1, y1, x2, y2; member
347 square_check(double x, double y, double x1, double y1, double x2, double y2) in square_check() argument
361 return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2)); in square_check()
367 return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2); in inside_square_filled()
387 double cy = (arg->y1+arg->y2)/2; in square_check_line()
388 double wy = fabs(arg->y1-arg->y2)/2; in square_check_line()
459 circle_check(double x, double y, double x1, double y1, double x2, double y2) in circle_check() argument
461 if (square_check(x, y, x1, y1, x2, y2)) in circle_check()
465 const double cy = (y1 + y2)/2; in circle_check()
467 const double dy = y1 - y2; in circle_check()
[all …]
/external/skia/src/core/
DSkEdge.cpp178 SkFDot6 x0, y0, x1, y1, x2, y2; in setQuadratic() local
187 y2 = SkScalarRoundToFDot6(pts[2].fY, shift); in setQuadratic()
195 y2 = int(pts[2].fY * scale); in setQuadratic()
200 if (y0 > y2) in setQuadratic()
203 SkTSwap(y0, y2); in setQuadratic()
206 SkASSERT(y0 <= y1 && y1 <= y2); in setQuadratic()
209 int bot = SkFDot6Round(y2); in setQuadratic()
218 SkFDot6 dy = (SkLeftShift(y1, 1) - y0 - y2) >> 2; in setQuadratic()
260 A = SkFDot6ToFixedDiv2(y0 - y1 - y1 + y2); // 1/2 the real value in setQuadratic()
268 fQLastY = SkFDot6ToFixed(y2); in setQuadratic()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DMullerSolver.java208 double y2 = f.value(x2); in solve() local
216 if (y2 == 0.0) { in solve()
228 final double d12 = (y2 - y1) / (x2 - x1); in solve()
262 y2 = x > x1 ? y2 : y1; in solve()
269 x2 = xm; y2 = ym; in solve()
353 double y2 = f.value(x2); in solve2() local
364 final double a = q * (y2 - (1 + q) * y1 + q * y0); in solve2()
365 final double b = (2 * q + 1) * y2 - (1 + q) * (1 + q) * y1 + q * q * y0; in solve2()
366 final double c = (1 + q) * y2; in solve2()
408 y1 = y2; in solve2()
[all …]
DRiddersSolver.java181 double y2 = f.value(x2); in solve() local
187 if (y2 == 0.0) { in solve()
202 final double delta = 1 - (y1 * y2) / (y3 * y3); // delta > 1 due to bracketing in solve()
203 final double correction = (MathUtils.sign(y2) * MathUtils.sign(y3)) * in solve()
224 y2 = y; in solve()
229 y2 = y3; in solve()
232 if (MathUtils.sign(y2) + MathUtils.sign(y) == 0.0) { in solve()
239 y2 = y; in solve()
/external/ceres-solver/internal/ceres/
Dpartitioned_matrix_view_test.cc96 Vector y2 = Vector::Zero(pmv_->num_rows()); in TEST_F() local
97 A_->RightMultiply(x2.data(), y2.data()); in TEST_F()
100 EXPECT_NEAR(y1(i), y2(i), kEpsilon); in TEST_F()
116 Vector y2 = Vector::Zero(pmv_->num_rows()); in TEST_F() local
117 A_->RightMultiply(x2.data(), y2.data()); in TEST_F()
120 EXPECT_NEAR(y1(i), y2(i), kEpsilon); in TEST_F()
132 Vector y2 = Vector::Zero(pmv_->num_cols_f()); in TEST_F() local
136 pmv_->LeftMultiplyF(x.data(), y2.data()); in TEST_F()
140 (i < pmv_->num_cols_e()) ? y1(i) : y2(i - pmv_->num_cols_e()), in TEST_F()
/external/opencv/cvaux/src/
Ddecomppoly.cpp152 int x1, y1, x2, y2, x3, y3;
188 y2 = contour[ index2 ].y;
195 dy1 = y2 - y1;
197 dy2 = y3 - y2;
246 y2 = y3;
268 y1 = y2;
271 y2 = y3;
297 y1 = y2;
300 y2 = y3;
339 int x1_left = 0, y1_left = 0, x1_right = 0, y1_right = 0, x2, y2;
[all …]

12345678910>>...19