/external/skia/src/pathops/ |
H A D | SkPathWriter.cpp | 38 void SkPathWriter::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) { argument 40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { 50 pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY, weight); 52 fPathPtr->conicTo(pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY, weight); 56 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { argument 58 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt 140 quadTo(const SkPoint& pt1, const SkPoint& pt2) argument [all...] |
H A D | SkPathWriter.h | 16 void conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight); 17 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3); 28 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
|
H A D | SkIntersections.cpp | 93 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { argument 96 SkASSERT(pt1 != pt2); 98 (void) insert(one, two, pt1);
|
H A D | SkPathOpsPoint.h | 13 inline bool AlmostEqualUlps(const SkPoint& pt1, const SkPoint& pt2) { argument 14 return AlmostEqualUlps(pt1.fX, pt2.fX) && AlmostEqualUlps(pt1.fY, pt2.fY);
|
/external/opencv/cv/src/ |
H A D | _cvgeom.h | 46 CV_INLINE float icvDistanceL2_32f( CvPoint2D32f pt1, CvPoint2D32f pt2 ) argument 48 float dx = pt2.x - pt1.x; 49 float dy = pt2.y - pt1.y;
|
H A D | cvpgh.cpp | 192 CvPoint pt1, pt2; local 195 CV_READ_EDGE( pt1, pt2, reader1 ); 197 dx = pt2.x - pt1.x; 198 dy = pt2.y - pt1.y; 214 CvPoint pt1, pt2; local 218 CV_READ_EDGE( pt1, pt2, reader1 ); 220 dx = pt2.x - pt1.x; 221 dy = pt2.y - pt1.y; 242 int d1 = (pt3.y - pt1.y) * dx - (pt3.x - pt1 [all...] |
H A D | cvcontourtree.cpp | 73 CvPoint *pt1, *pt2; /* pointer to current points */ local 160 pt1 = pt_p; 171 pt1 = pt_p; 181 pt1 = pt_n; 187 t = pt1[0]; 189 tp1 = pt1[i - 1]; 191 tp2 = pt1[i - 2]; 193 tp3 = pt1[i - 3]; 195 tn1 = pt1[1]; 197 tn2 = pt1[ [all...] |
/external/valgrind/drd/tests/ |
H A D | pth_cleanup_handler.c | 39 pthread_t pt1, pt2; local 49 if (pthread_create(&pt1, NULL, f, NULL) != 0) 60 pthread_join(pt1, 0);
|
/external/fonttools/Lib/fontTools/misc/ |
H A D | bezierTools.py | 24 def calcQuadraticBounds(pt1, pt2, pt3): 26 pt1 and pt3 are the "anchor" points, pt2 is the "handle". 33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3) 41 points = [(ax*t*t + bx*t + cx, ay*t*t + by*t + cy) for t in roots if 0 <= t < 1] + [pt1, pt3] 45 def calcCubicBounds(pt1, pt2, pt3, pt4): 47 pt1 and pt4 are the "anchor" points, pt2 and pt3 are the "handles". 56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4) 66 points = [(ax*t*t*t + bx*t*t + cx * t + dx, ay*t*t*t + by*t*t + cy * t + dy) for t in roots] + [pt1, pt4] 70 def splitLine(pt1, pt2, where, isHorizontal): 71 """Split the line between pt1 an [all...] |
/external/fonttools/Tools/fontTools/misc/ |
H A D | bezierTools.py | 24 def calcQuadraticBounds(pt1, pt2, pt3): 26 pt1 and pt3 are the "anchor" points, pt2 is the "handle". 33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3) 41 points = [(ax*t*t + bx*t + cx, ay*t*t + by*t + cy) for t in roots if 0 <= t < 1] + [pt1, pt3] 45 def calcCubicBounds(pt1, pt2, pt3, pt4): 47 pt1 and pt4 are the "anchor" points, pt2 and pt3 are the "handles". 56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4) 66 points = [(ax*t*t*t + bx*t*t + cx * t + dx, ay*t*t*t + by*t*t + cy * t + dy) for t in roots] + [pt1, pt4] 70 def splitLine(pt1, pt2, where, isHorizontal): 71 """Split the line between pt1 an [all...] |
/external/opencv/cxcore/src/ |
H A D | cxdrawing.cpp | 81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 ) argument 93 if( !pt1 || !pt2 ) 99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y; 141 pt1->x = x1; 142 pt1->y = y1; 160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, argument 183 if( (unsigned)pt1.x >= (unsigned)(mat->width) || 185 (unsigned)pt1.y >= (unsigned)(mat->height) || 193 dx = pt2.x - pt1 256 icvLine( CvMat* mat, CvPoint pt1, CvPoint pt2, const void* color, int connectivity = 8 ) argument 296 icvLineAA( CvMat* img, CvPoint pt1, CvPoint pt2, const void* color ) argument 561 icvLine2( CvMat* img, CvPoint pt1, CvPoint pt2, const void* color ) argument 1041 CvPoint pt0, pt1; local 1166 CvPoint pt0, pt1, t0, t1; local 2539 CvPoint pt1, pt2; local [all...] |
/external/fonttools/Lib/fontTools/pens/ |
H A D | basePen.py | 164 def _curveToOne(self, pt1, pt2, pt3): 175 def _qCurveToOne(self, pt1, pt2): 181 pt1x, pt1y = pt1 245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points): 246 _curveToOne(pt1, pt2, pt3) 277 for pt1, pt2 in decomposeQuadraticSegment(points): 278 _qCurveToOne(pt1, pt2) 291 This function returns a list of (pt1, pt2, pt3) tuples, which each 297 pt1, pt2, pt3 = points[0], None, None 312 bezierSegments.append((pt1, pt [all...] |
/external/fonttools/Tools/fontTools/pens/ |
H A D | basePen.py | 164 def _curveToOne(self, pt1, pt2, pt3): 175 def _qCurveToOne(self, pt1, pt2): 181 pt1x, pt1y = pt1 245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points): 246 _curveToOne(pt1, pt2, pt3) 277 for pt1, pt2 in decomposeQuadraticSegment(points): 278 _qCurveToOne(pt1, pt2) 291 This function returns a list of (pt1, pt2, pt3) tuples, which each 297 pt1, pt2, pt3 = points[0], None, None 312 bezierSegments.append((pt1, pt [all...] |
/external/freetype/src/cff/ |
H A D | cf2glue.h | 105 FT_Vector pt1; member in struct:CF2_CallbackParamsRec_
|
H A D | cf2hints.c | 74 /* cross product of pt1 position from origin with pt2 position from */ 75 /* pt1; we reduce the precision so that the result fits into 32 bits */ 1295 ¶ms.pt1, 1303 ¶ms.pt1, 1309 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) 1313 glyphpath->currentDS = params.pt1; 1323 ¶ms.pt1, 1357 ¶ms.pt1, 1365 ¶ms.pt1, [all...] |
/external/pdfium/third_party/freetype/src/cff/ |
H A D | cf2glue.h | 105 FT_Vector pt1; member in struct:CF2_CallbackParamsRec_
|
H A D | cf2hints.c | 74 /* cross product of pt1 position from origin with pt2 position from */ 75 /* pt1; we reduce the precision so that the result fits into 32 bits */ 1295 ¶ms.pt1, 1303 ¶ms.pt1, 1309 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) 1313 glyphpath->currentDS = params.pt1; 1323 ¶ms.pt1, 1357 ¶ms.pt1, 1365 ¶ms.pt1, [all...] |
/external/pdfium/fpdfsdk/src/pdfwindow/ |
H A D | PWL_ScrollBar.cpp | 184 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); 192 sButton << pt1.x << " " << pt1.y << " m\n"; 195 sButton << pt1.x << " " << pt1.y << " l f\n"; 203 CPDF_Point pt1(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); 211 sButton << pt1.x << " " << pt1.y << " m\n"; 214 sButton << pt1.x << " " << pt1 [all...] |
H A D | PWL_ComboBox.cpp | 126 CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFLEN * 0.5f); 136 sButton << pt1.x << " " << pt1.y << " m\n"; 139 sButton << pt1.x << " " << pt1.y << " l f\n"; 156 CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFLEN * 0.5f); 168 path.SetPoint(0, pt1.x, pt1.y, FXPT_MOVETO); 171 path.SetPoint(3, pt1.x, pt1 [all...] |
/external/skia/experimental/StrokePathRenderer/ |
H A D | GrStrokePathRenderer.cpp | 166 const SkPoint* pt1 = ccw ? &l2a : &l1a; 180 const SkPoint pt2 = *pt0+v0, pt3 = *pt1+v1; 181 if (intersection(*pt0, pt2, *pt1, pt3, miterPt[0]) != 184 SkPoint miterPt1 = miterPt[0] - *pt1; 193 miterPt[1] = *pt1+v1;
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
H A D | xa_renderer.c | 192 float pt0[2], pt1[2], pt2[2], pt3[2]; local 196 pt1[0] = (srcX + width); 197 pt1[1] = srcY; 205 map_point((float *)src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); 211 s1 = pt1[0] / src->width0; 215 t1 = pt1[1] / src->height0;
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
H A D | xorg_renderer.c | 145 float pt0[2], pt1[2], pt2[2], pt3[2]; local 149 pt1[0] = (srcX + width); 150 pt1[1] = srcY; 158 map_point(src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); 164 s1 = pt1[0] / src->width0; 168 t1 = pt1[1] / src->height0;
|
/external/pdfium/fpdfsdk/src/fxedit/ |
H A D | fxet_pageobjs.cpp | 47 CPDF_Point pt1(0,0), pt2(1,0); 48 pUser2Device->Transform(pt1.x, pt1.y); 51 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); 66 CPDF_Point pt1(0,0), pt2(1,0); 67 pUser2Device->Transform(pt1.x, pt1.y); 70 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1 [all...] |
/external/skia/src/ports/ |
H A D | SkFontHost_FreeType_common.cpp | 528 static int quad_proc(const FT_Vector* pt0, const FT_Vector* pt1, argument 532 SkFDot6ToScalar(pt1->x), -SkFDot6ToScalar(pt1->y)); 536 static int cubic_proc(const FT_Vector* pt0, const FT_Vector* pt1, argument 540 SkFDot6ToScalar(pt1->x), -SkFDot6ToScalar(pt1->y),
|
/external/skia/tests/ |
H A D | PathOpsAngleIdeas.cpp | 253 static bool equalPoints(const SkDPoint& pt1, const SkDPoint& pt2, double max) { argument 254 return approximately_zero_when_compared_to(pt1.fX - pt2.fX, max) 255 && approximately_zero_when_compared_to(pt1.fY - pt2.fY, max); 300 SkDPoint pt1 = quad1.ptAtT(tRange.t1); local 301 if (equalPoints(pt1, best1, maxQuads)) { 304 best1 = pt1; 356 SkDPoint pt1 = quad1.ptAtT(tRange.t1); local 358 if (equalPoints(pt1, best1, maxQuads)) { 361 best1 = pt1; 366 if (equalPoints(pt1, pt [all...] |