/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 66 double x2, double y2, 71 centY = (y0 + y1 + y2) / 3.0; 74 if (y0 == y2) 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 102 // Calculate line equation from x0,y0 to x2,y2 104 double dy = y2 - y0; 129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument 141 // The quad is split from x0,y0 to x2,y2 65 FindTriangleCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double &mass, double ¢X, double ¢Y) argument [all...] |
H A D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); 192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher 195 yBottomCorners[1] = y2; 200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); 1025 int y2 = y1 + 1; local 1030 double y2val = sptr->ptr[y2][x1] + 1031 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; 1038 y2val = suptr->ptr[y2][x [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 66 double x2, double y2, 71 centY = (y0 + y1 + y2) / 3.0; 74 if (y0 == y2) 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 102 // Calculate line equation from x0,y0 to x2,y2 104 double dy = y2 - y0; 129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument 141 // The quad is split from x0,y0 to x2,y2 65 FindTriangleCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double &mass, double ¢X, double ¢Y) argument [all...] |
H A D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); 192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher 195 yBottomCorners[1] = y2; 200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); 1005 int y2 = y1 + 1; local 1010 double y2val = sptr->ptr[y2][x1] + 1011 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; 1018 y2val = suptr->ptr[y2][x [all...] |
/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | geometry_utils.h | 31 static inline float getSquaredDistanceFloat(float x1, float y1, float x2, float y2) { argument 33 const float deltaY = y1 - y2; 37 static inline float getDistanceFloat(float x1, float y1, float x2, float y2) { argument 38 return hypotf(x1 - x2, y1 - y2); 41 static inline int getDistanceInt(int x1, int y1, int x2, int y2) { argument 43 static_cast<float>(x2), static_cast<float>(y2))); 46 static inline float getAngle(int x1, int y1, int x2, int y2) { argument 48 const int dy = y1 - y2; 64 float x, float y, float x1, float y1, float x2, float y2, bool extend) { 68 const float ray2y = y2 63 pointToLineSegSquaredDistanceFloat( float x, float y, float x1, float y1, float x2, float y2, bool extend) argument [all...] |
H A D | proximity_info.cpp | 130 static inline float getNormalizedSquaredDistanceFloat(float x1, float y1, float x2, float y2, argument 133 const float deltaY = y1 - y2;
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
H A D | PointCloud.java | 111 public Point(float x2, float y2, float r) { argument 113 y = (float) y2;
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; local 74 y2=db_sqr(f[1]); 75 r2=x2+y2;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GLCanvas.java | 72 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 74 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 76 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 78 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
H A D | GLCanvasImpl.java | 56 // x1, y1, x2, y2. 192 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument 200 scale(x2 - x1, y2 - y1, 1); 315 // {x1', y1', x2', y2'} are stored in mMapPointsBuffer and also returned. 316 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { argument 326 // Same for x2 y2. 327 float x4 = m[0] * x2 + m[4] * y2 + m[12]; 328 float y4 = m[1] * x2 + m[5] * y2 + m[13]; 329 float w4 = m[3] * x2 + m[7] * y2 + m[15];
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLCanvasStub.java | 51 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {} argument 52 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {} argument
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; local 74 y2=db_sqr(f[1]); 75 r2=x2+y2;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureStroke.java | 334 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument 336 final int dy = y1 - y2;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | PointerTracker.java | 662 static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument 663 return (int)Math.hypot(x1 - x2, y1 - y2);
|