/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
Sprite.java | 139 float x2 = x + width;
local 145 vertices[X2] = x;
148 vertices[X3] = x2;
151 vertices[X4] = x2;
166 float x2 = x + width;
local 172 vertices[X2] = x;
175 vertices[X3] = x2;
178 vertices[X4] = x2;
230 vertices[X2] += xAmount;
261 vertices[X2] += xAmount; 443 final float x2 = localXCos - localY2Sin + worldOriginX; local 458 final float x2 = localX2 + worldOriginX; local [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/renderers/ |
OrthoCachedTiledMapRenderer.java | 250 final float x2 = x1 + region.getRegionWidth() * unitScale; local 266 vertices[X2] = x1; 272 vertices[X3] = x2; 278 vertices[X4] = x2; 367 final float x2 = x1 + region.getRegionWidth() * unitScale; local 381 vertices[X2] = x1; 387 vertices[X3] = x2; 393 vertices[X4] = x2;
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
PolygonRegionTest.java | 214 float x2;
local 226 x2 = cos * p2x - sin * p2y;
232 x4 = x1 + (x3 - x2);
238 x2 = p2x;
250 x2 += worldOriginX;
261 renderer.line(x1, y1, x2, y2);
262 renderer.line(x2, y2, x3, y3);
|
/external/libopus/src/ |
analysis.c | 119 float x2, y2; local 126 x2 = x*x; 128 if(x2<y2){ 129 float den = (y2 + cB*x2) * (y2 + cC*x2); 131 return -x*y*(y2 + cA*x2) / den + (y<0 ? -cE : cE); 135 float den = (x2 + cB*y2) * (x2 + cC*y2); 137 return x*y*(x2 + cA*y2) / den + (y<0 ? -cE : cE) - (x*y<0 ? -cE : cE);
|
/external/libpng/contrib/tools/ |
genpng.c | 18 * shape ::= color width shape x1 y1 x2 y2 42 * shape ::= color width shape x1 y1 x2 y2 50 * x2 ::= <number> 179 double x1, y1, x2, y2; member in struct:arg 347 square_check(double x, double y, double x1, double y1, double x2, double y2) 348 /* Is x,y inside the square (x1,y1)..(x2,y2)? */ 353 * x<x1 | x<y1 | x<x2 | x<y2 359 * So 'inside' is (x<x1) != (x<x2) && (y<y1) != (y<y2); 361 return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2)); 367 return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2) [all...] |
/external/libvncserver/libvncserver/ |
cursor.c | 29 void rfbScaledScreenUpdate(rfbScreenInfoPtr screen, int x1, int y1, int x2, int y2); 476 int j,x1,x2,y1,y2,bpp=s->serverFormat.bitsPerPixel/8, local 486 x2=x1+c->width; 488 if(x2>=s->width) x2=s->width-1; 489 x2-=x1; if(x2<=0) { 505 s->underCursorBuffer+j*x2*bpp, 506 x2*bpp); 509 rfbScaledScreenUpdate(s, x1, y1, x1+x2, y1+y2) 518 int i,j,x1,x2,y1,y2,i1,j1,bpp=s->serverFormat.bitsPerPixel\/8, local 686 int x,y,x2,y2; local [all...] |
/external/libvpx/libvpx/vpx_dsp/ |
inv_txfm.c | 253 tran_low_t x2 = input[2]; local 256 if (!(x0 | x1 | x2 | x3)) { 264 s3 = sinpi_4_9 * x2; 265 s4 = sinpi_1_9 * x2; 268 s7 = x0 - x2 + x3; 290 tran_high_t x2 = input[5]; local 297 if (!(x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7)) { 306 s2 = (int)(cospi_10_64 * x2 + cospi_22_64 * x3); 307 s3 = (int)(cospi_22_64 * x2 - cospi_10_64 * x3); 315 x2 = WRAPLOW(dct_const_round_shift(s2 + s6), 8) 585 tran_high_t x2 = input[13]; local 1488 tran_low_t x2 = input[2]; local 1526 tran_low_t x2 = input[5]; local 1824 tran_low_t x2 = input[13]; local [all...] |
/external/libvpx/libvpx/vpx_dsp/mips/ |
itrans16_dspr2.c | 1060 int x2 = input[13]; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_state.c | 515 int x1, y1, x2, y2; local 525 x2 = x + w - 1; 527 DBG("%s %d..%d,%d..%d (inverted)\n", __FUNCTION__, x1, x2, y1, y2); 534 x2 = x + w - 1; 536 DBG("%s %d..%d,%d..%d (not inverted)\n", __FUNCTION__, x1, x2, y1, y2); 541 x2 = CLAMP(x2, 0, ctx->DrawBuffer->Width - 1); 544 DBG("%s %d..%d,%d..%d (clamped)\n", __FUNCTION__, x1, x2, y1, y2); 548 i915->state.Buffer[I915_DESTREG_SR2] = (y2 << 16) | (x2 & 0xffff); [all...] |
/external/mesa3d/src/mesa/program/ |
prog_noise.c | 259 float x1, y1, x2, y2; local 281 x2 = x0 - 1.0f + 2.0f * G2; /* Offsets for last corner in (x,y) unskewed coords */ 305 t2 = 0.5f - x2 * x2 - y2 * y2; 310 n2 = t2 * t2 * grad2(perm[ii + 1 + perm[jj + 1]], x2, y2); 346 float x1, y1, z1, x2, y2, z2, x3, y3, z3; local 418 x2 = x0 - i2 + 2.0f * G3; /* Offsets for third corner in (x,y,z) coords */ 449 t2 = 0.6f - x2 * x2 - y2 * y2 - z2 * z2; 455 t2 * t2 * grad3(perm[ii + i2 + perm[jj + j2 + perm[kk + k2]]], x2, 529 float x1, y1, z1, w1, x2, y2, z2, w2, x3, y3, z3, w3, x4, y4, z4, w4; local [all...] |
/external/opencv/cv/src/ |
cvpyrsegmentation.cpp | 52 ushort x1, y1, x2, y2; member in struct:_CvRect16u 311 p_cur->rect.x2 = 0; 731 p_cur->rect.x2 = 0; [all...] |
cvtemplmatch.cpp | 208 int x1 = MAX( 0, x0 ), y1 = MAX( 0, y0 ), x2, y2; local 213 x2 = MIN( img->cols, x0 + isz.width ); 221 src = cvGetSubRect( img, &sstub, cvRect(x1,y1,x2-x1,y2-y1) ); 226 if( x2 - x1 < isz.width || y2 - y1 < isz.height ) 228 cvRect( x1 - x0, y1 - y0, x2 - x1, y2 - y1 )); 234 planes[i] = cvInitMatHeader( &temp, y2 - y1, x2 - x1, depth, _buf );
|
cvundistort.cpp | 67 float x = (u - u0)*ifx, x2 = x*x, r2 = x2 + y2, _2xy = 2*x*y; local 69 float _x = fx*(x*kr + p1*_2xy + p2*(r2 + 2*x2)) + x0; 246 float x = (u - u0)*ifx, x2 = x*x, r2 = x2 + y2, _2xy = 2*x*y; local 248 double _x = fx*(x*kr + p1*_2xy + p2*(r2 + 2*x2)) + x0; 356 double x2 = x*x, y2 = y*y; local 357 double r2 = x2 + y2, _2xy = 2*x*y; 359 double u = fx*(x*kr + p1*_2xy + p2*(r2 + 2*x2)) + u0;
|
/external/opencv3/modules/calib3d/src/ |
homography_decomp.cpp | 286 int x2 = col == 2 ? 1 : 2; local 290 return (M(y1, x2) * M(y2, x1) - M(y1, x1) * M(y2, x2));
|
p3p.cpp | 61 double mu2, double mv2, double X2, double Y2, double Z2, 66 int n = solve(Rs, ts, mu0, mv0, X0, Y0, Z0, mu1, mv1, X1, Y1, Z1, mu2, mv2, X2, Y2, Z2); 98 double mu2, double mv2, double X2, double Y2, double Z2) 119 distances[0] = sqrt( (X1 - X2) * (X1 - X2) + (Y1 - Y2) * (Y1 - Y2) + (Z1 - Z2) * (Z1 - Z2) ); 120 distances[1] = sqrt( (X0 - X2) * (X0 - X2) + (Y0 - Y2) * (Y0 - Y2) + (Z0 - Z2) * (Z0 - Z2) ); 148 if (!align(M_orig, X0, Y0, Z0, X1, Y1, Z1, X2, Y2, Z2, R[nb_solutions], t[nb_solutions])) 224 double x2 = x*x; local 227 ((1-a-b)*x2 + (q*a-q)*x + 1 - a + b) [all...] |
/external/opencv3/modules/features2d/src/ |
evaluation.cpp | 48 template<typename _Tp> static int solveQuadratic(_Tp a, _Tp b, _Tp c, _Tp& x1, _Tp& x2) 54 x1 = x2 = 0; 57 x1 = x2 = -c/b; 64 x1 = x2 = 0; 72 x2 = (-b + d)*s; 73 if( x1 > x2 ) 74 std::swap(x1, x2); 77 x1 = x2 = -b/(2*a); 146 double x1, x2; local 147 solveQuadratic(1., -(a+c), ac_b2, x1, x2); [all...] |
/external/opencv3/modules/hal/src/ |
mathfuncs.cpp | 569 double x2 = x[i + 2].f * exp_prescale; local 580 x2 = x[i+2].i < 0 ? -exp_max_val : exp_max_val; 587 val2 = cvRound(x2); 592 x2 = (x2 - val2)*exp_postscale; 617 x2 = buf[2].f * expTab[val2 & EXPTAB_MASK] * EXPPOLY( x2 ); 620 y[i + 2] = (float)x2; 731 double x2 = x[i + 2].f * exp_prescale; 747 x2 = t < 0 ? -exp_max_val : exp_max_val [all...] |
/external/opencv3/modules/stitching/src/ |
motion_estimators.cpp | 562 double x2 = H2(0,0)*p2.x + H2(0,1)*p2.y + H2(0,2); local 565 len = std::sqrt(x2*x2 + y2*y2 + z2*z2); 566 x2 /= len; y2 /= len; z2 /= len; 569 err.at<double>(3 * match_idx, 0) = mult * (x1 - x2);
|
/external/pdfium/core/src/fxge/skia/ |
fx_skia_device.cpp | 162 FX_FIXFLOAT x2 = pPoints[i + 1].m_PointX, y2 = pPoints[i + 1].m_PointY; local 165 pObject2Device->Transform(x2, y2); 168 m_PathData.cubicTo(x, y, x2, y2, x3, y3);
|
/external/pdfium/fpdfsdk/src/ |
fpdf_flatten.cpp | 296 FX_FLOAT x2 = matrix.a * rcStream.left + matrix.c * rcStream.top + matrix.e; local 305 FX_FLOAT left = std::min(std::min(x1, x2), std::min(x3, x4));
|
/external/pdfium/third_party/agg23/ |
agg_basics.h | 68 T x2; member in struct:agg::rect_base 72 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} 76 if(x1 > x2) { 78 x1 = x2; 79 x2 = t; 90 if(x2 > r.x2) { 91 x2 = r.x2; 102 return x1 <= x2 && y1 <= y2 [all...] |
/external/pdfium/third_party/lcms2-2.6/src/ |
cmsgamma.c | 928 cmsFloat64Number a = 0, b = 0, y, x1, y1, x2, y2; local 965 x2 = InCurve ->Table16[j+1]; 971 if (x1 == x2) { 979 a = (y2 - y1) / (x2 - x1); 980 b = y2 - a * x2; [all...] |
/external/skia/src/effects/ |
SkBlurMask.cpp | 658 float x2 = x*x; local 659 float x3 = x2*x; 662 return 0.5625f - (x3 / 6.0f - 3.0f * x2 * 0.25f + 1.125f * x); 667 return 0.4375f + (-x3 / 6.0f - 3.0f * x2 * 0.25f - 1.125f * x); [all...] |
/external/skia/src/gpu/ |
GrPathUtils.cpp | 212 // And control_pts = [x0 x1 x2] 223 double x2 = qPts[2].fX; local 225 double det = x0*y1 - y0*x1 + x2*y0 - y2*x0 + x1*y2 - y1*x2; 272 a1 = x2-x1; 273 a2 = x1*y2-x2*y1; 276 a4 = x0-x2; 277 a5 = x2*y0-x0*y2; 325 // k = (y2 - y0, x0 - x2, (x2 - x0)*y0 - (y2 - y0)*x0 [all...] |
/external/skia/tests/ |
Matrix44Test.cpp | 764 SkMScalar x2; member in struct:DoubleRotationCase 778 transform2.setRotateDegreesAbout(value.x2, value.y2, value.z2, value.degrees2); [all...] |