Searched defs:y0 (Results 1 - 5 of 5) sorted by relevance

/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;
74 if (y0 == y2)
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
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 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0);
186 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower
188 yTopCorners[0] = y0;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
/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;
74 if (y0 == y2)
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
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 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0);
186 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower
188 yTopCorners[0] = y0;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DTiledTexture.java242 // (x0,y0) source +---------------+
252 RectF src, float x0, float y0, float x, float y, float scaleX,
255 y + (src.top - y0) * scaleY,
257 y + (src.bottom - y0) * scaleY);
300 float y0 = source.top;
311 mapRect(dest, src, x0, y0, x, y, scaleX, scaleY);
251 mapRect(RectF output, RectF src, float x0, float y0, float x, float y, float scaleX, float scaleY) argument

Completed in 535 milliseconds