Searched refs:y1 (Results 1 - 25 of 33) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dgeometry_utils.h33 static AK_FORCE_INLINE float getAngle(const int x1, const int y1, const int x2, const int y2) { argument
35 const int dy = y1 - y2;
50 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, argument
52 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
H A Dproximity_info_utils.h88 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, argument
90 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2);
94 const float x1, const float y1, const float x2, const float y2, const bool extend) {
96 const float ray1y = y - y1;
98 const float ray2y = y2 - y1;
105 return getSquaredDistanceFloat(x, y, x1, y1);
113 projectionY = y1;
119 projectionY = y1 + projectionLengthSqr * ray2y;
93 pointToLineSegSquaredDistanceFloat(const float x, const float y, const float x1, const float y1, const float x2, const float y2, const bool extend) argument
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
119 dy = y1 - m1 * x + b1;
124 mass = fabs( (y1 - y0) * (x2 - x0) );
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument
143 FindTriangleCentroid(x0, y0, x1, y1, x
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher
194 yBottomCorners[0] = y1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
1002 int y1 = (yy >= 0.0) ? (int) yy : (int) floor(yy); local
1007 inSegment(y1, sptr->height, BORDER-1))
1010 double yfrac = yy - y1;
1012 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
1016 wt1 * ciCalc(suptr, x1, y1, xfra
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
119 dy = y1 - m1 * x + b1;
124 mass = fabs( (y1 - y0) * (x2 - x0) );
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument
143 FindTriangleCentroid(x0, y0, x1, y1, x
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher
194 yBottomCorners[0] = y1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
982 int y1 = (yy >= 0.0) ? (int) yy : (int) floor(yy); local
987 inSegment(y1, sptr->height, BORDER-1))
990 double yfrac = yy - y1;
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
996 wt1 * ciCalc(suptr, x1, y1, xfra
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A Dconvolve3x3.rs31 uint32_t y1 = min((int32_t)y+1, gHeight-1);
34 float4 p00 = rsUnpackColor8888(gPixels[x1 + gWidth * y1]);
35 float4 p01 = rsUnpackColor8888(gPixels[x + gWidth * y1]);
36 float4 p02 = rsUnpackColor8888(gPixels[x2 + gWidth * y1]);
H A Dgrad.rs58 float y1 = yPos1[i];
62 float denom = (y2 * y2 - 2 * y1 * y2 + x2 * x2 - 2 * x1 * x2 + y1 * y1 + x1 * x1);
66 grads[k].dy = (y1 - y2) / denom;
68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
H A DImageFilterGrad.java123 int[] y1 = mParameters.getYPos1();
133 coord[1] = y1[i];
136 y1[i] = (int) coord[1];
146 mScript.set_yPos1(y1);
H A DSplineMath.java52 double y1 = cur[1];
61 double ta = a * y1;
93 double y1 = cur[1];
102 double ta = a * y1;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DBogusMoveEventDetector.java107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
108 return (int)Math.hypot(x1 - x2, y1 - y2);
H A DGestureStrokeRecognitionPoints.java331 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
332 return (int)Math.hypot(x1 - x2, y1 - y2);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java83 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
87 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
H A DGLES11Canvas.java63 // x1, y1, x2, y2.
195 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
202 translate(x1, y1);
203 scale(x2 - x1, y2 - y1, 1);
318 // {x1', y1', x2', y2'} are stored in mMapPointsBuffer and also returned.
319 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { argument
322 // Multiply m and (x1 y1 0 1) to produce (x3 y3 z3 w3). z3 is unused.
323 float x3 = m[0] * x1 + m[4] * y1 + m[12];
324 float y3 = m[1] * x1 + m[5] * y1 + m[13];
325 float w3 = m[3] * x1 + m[7] * y1
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java81 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageGrad.java179 int y1[] = mGradRep.getYPos1();
192 c[1] = (y1[i]+y2[i])/2;
H A DGeometryMathUtils.java131 float y1 = line[1];
134 float ydelt = y2 - y1;
137 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt)
140 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1))
H A DSpline.java185 double y1 = cur.y;
194 double ta = a * y1;
279 double y1 = points[i].y;
289 double ta = a * y1;
H A DGradControl.java124 private boolean centerIsOutside(float x1, float y1, float x2, float y2) { argument
125 return (!mImageBounds.contains((int) ((x1 + x2) / 2), (int) ((y1 + y2) / 2)));
H A DEclipseControl.java107 private boolean centerIsOutside(float x1, float y1) { argument
108 return (!mImageBounds.contains((int) x1, (int) y1));
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DPointCloud.java81 public void setY(float y1) { argument
82 y = y1;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DDynamicGridKeyboard.java234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { argument
237 getHitBox().set(x0, y0, x1, y1);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java116 final float y1 = y0 + s * dY / v;
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDeleteDropTarget.java282 final float y1 = from.top;
305 float y = (1f - t) * (1f - t) * (y1 - y1o) + 2 * (1f - t) * t * (y2 - x1o) +
/packages/apps/Launcher3/src/com/android/launcher3/
H A DDeleteDropTarget.java390 final float y1 = from.top;
413 float y = (1f - t) * (1f - t) * (y1 - y1o) + 2 * (1f - t) * t * (y2 - x1o) +

Completed in 4817 milliseconds

12