/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 65 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 D | Blend.cpp | 144 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 D | Geometry.h | 65 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 D | Blend.cpp | 144 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/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 42 return static_cast<int>(getDistanceFloat(static_cast<float>(x1), static_cast<float>(y1), 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) { 66 const float ray1y = y - y1; 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 | 81 public void setY(float y1) { argument 82 y = y1;
|
/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 199 translate(x1, y1); 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 319 // Multiply m and (x1 y1 0 1) to produce (x3 y3 z3 w3). z3 is unused. 320 float x3 = m[0] * x1 + m[4] * y1 + m[12]; 321 float y3 = m[1] * x1 + m[5] * y1 + m[13]; 322 float w3 = m[3] * x1 + m[7] * y1 [all...] |
/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/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);
|