Home
last modified time | relevance | path

Searched refs:pt2 (Results 1 – 25 of 61) sorted by relevance

123

/external/fonttools/Lib/fontTools/misc/
DbezierTools.py24 def calcQuadraticBounds(pt1, pt2, pt3): argument
33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3)
45 def calcCubicBounds(pt1, pt2, pt3, pt4): argument
56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4)
70 def splitLine(pt1, pt2, where, isHorizontal): argument
90 pt2x, pt2y = pt2
99 return [(pt1, pt2)]
104 return [(pt1, midPt), (midPt, pt2)]
106 return [(pt1, pt2)]
109 def splitQuadratic(pt1, pt2, pt3, where, isHorizontal): argument
[all …]
/external/fonttools/Lib/fontTools/pens/
DbasePen.py164 def _curveToOne(self, pt1, pt2, pt3): argument
175 def _qCurveToOne(self, pt1, pt2): argument
182 pt2x, pt2y = pt2
187 self._curveToOne((mid1x, mid1y), (mid2x, mid2y), pt2)
245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points):
246 _curveToOne(pt1, pt2, pt3)
277 for pt1, pt2 in decomposeQuadraticSegment(points):
278 _qCurveToOne(pt1, pt2)
279 self.__currentPoint = pt2
297 pt1, pt2, pt3 = points[0], None, None
[all …]
/external/opencv/cxcore/src/
Dcxdrawing.cpp81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 ) in cvClipLine() argument
93 if( !pt1 || !pt2 ) in cvClipLine()
99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y; in cvClipLine()
143 pt2->x = x2; in cvClipLine()
144 pt2->y = y2; in cvClipLine()
160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, in cvInitLineIterator() argument
184 (unsigned)pt2.x >= (unsigned)(mat->width) || in cvInitLineIterator()
186 (unsigned)pt2.y >= (unsigned)(mat->height) ) in cvInitLineIterator()
193 dx = pt2.x - pt1.x; in cvInitLineIterator()
194 dy = pt2.y - pt1.y; in cvInitLineIterator()
[all …]
/external/opencv/cv/src/
Dcvpgh.cpp192 CvPoint pt1, pt2; in icvCalcPGH() local
195 CV_READ_EDGE( pt1, pt2, reader1 ); in icvCalcPGH()
197 dx = pt2.x - pt1.x; in icvCalcPGH()
198 dy = pt2.y - pt1.y; in icvCalcPGH()
214 CvPoint pt1, pt2; in icvCalcPGH() local
218 CV_READ_EDGE( pt1, pt2, reader1 ); in icvCalcPGH()
220 dx = pt2.x - pt1.x; in icvCalcPGH()
221 dy = pt2.y - pt1.y; in icvCalcPGH()
243 int d2 = (pt4.y - pt1.y) * dx - (pt2.x - pt1.x) * dy; in icvCalcPGH()
D_cvgeom.h46 CV_INLINE float icvDistanceL2_32f( CvPoint2D32f pt1, CvPoint2D32f pt2 ) in icvDistanceL2_32f() argument
48 float dx = pt2.x - pt1.x; in icvDistanceL2_32f()
49 float dy = pt2.y - pt1.y; in icvDistanceL2_32f()
Dcvcontourtree.cpp73 CvPoint *pt1, *pt2; /* pointer to current points */ in icvCreateContourTree() local
161 pt2 = pt_n; in icvCreateContourTree()
172 pt2 = pt_n; in icvCreateContourTree()
182 pt2 = pt_p; in icvCreateContourTree()
328 pt2[i_buf] = t; in icvCreateContourTree()
380 t = pt2[0]; in icvCreateContourTree()
381 tn1 = pt2[1]; in icvCreateContourTree()
382 tn2 = pt2[2]; in icvCreateContourTree()
383 tp1 = pt2[3]; in icvCreateContourTree()
Dcvcalibinit.cpp345 CvPoint2D32f pt1, pt2; in cvFindChessboardCorners() local
348 pt2 = quads[i].corners[(k+1)%4]->pt; in cvFindChessboardCorners()
349 pt2.x = (pt1.x + pt2.x)/2; in cvFindChessboardCorners()
350 pt2.y = (pt1.y + pt2.y)/2; in cvFindChessboardCorners()
353 cvLine( dbg1_img, cvPointFrom32f(pt1), cvPointFrom32f(pt2), color, 3, 8); in cvFindChessboardCorners()
399 CvPoint2D32f pt1, pt2; in cvFindChessboardCorners() local
404 pt2 = quads[i].corners[(k+1)%4]->pt; in cvFindChessboardCorners()
405 pt2.x = (pt1.x + pt2.x)/2; in cvFindChessboardCorners()
406 pt2.y = (pt1.y + pt2.y)/2; in cvFindChessboardCorners()
409 … cvLine( dbg2_img, cvPointFrom32f(pt1), cvPointFrom32f(pt2), color, 3, 8); in cvFindChessboardCorners()
/external/skia/src/pathops/
DSkPathWriter.cpp33 void SkPathWriter::conicTo(const SkPoint& pt1, const SkOpPtT* pt2, SkScalar weight) { in conicTo() argument
34 this->update(pt2); in conicTo()
37 pt1.fX, pt1.fY, pt2->fPt.fX, pt2->fPt.fY, weight); in conicTo()
39 fCurrent.conicTo(pt1, pt2->fPt, weight); in conicTo()
42 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkOpPtT* pt3) { in cubicTo() argument
46 pt1.fX, pt1.fY, pt2.fX, pt2.fY, pt3->fPt.fX, pt3->fPt.fY); in cubicTo()
48 fCurrent.cubicTo(pt1, pt2, pt3->fPt); in cubicTo()
145 void SkPathWriter::quadTo(const SkPoint& pt1, const SkOpPtT* pt2) { in quadTo() argument
146 this->update(pt2); in quadTo()
149 pt1.fX, pt1.fY, pt2->fPt.fX, pt2->fPt.fY); in quadTo()
[all …]
DSkPathWriter.h24 void conicTo(const SkPoint& pt1, const SkOpPtT* pt2, SkScalar weight);
25 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkOpPtT* pt3);
33 void quadTo(const SkPoint& pt1, const SkOpPtT* pt2);
DSkIntersections.cpp98 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { in insertNear() argument
101 SkASSERT(pt1 != pt2); in insertNear()
104 fPt2[one ? 1 : 0] = pt2; in insertNear()
/external/valgrind/drd/tests/
Dpth_cleanup_handler.c39 pthread_t pt1, pt2; in main() local
54 if (pthread_create(&pt2, NULL, f, NULL) != 0) in main()
61 pthread_join(pt2, 0); in main()
/external/pdfium/fpdfsdk/pdfwindow/
DPWL_Utils.cpp109 CFX_PointF pt2(crBBox.left + fWidth / 2, crBBox.top); in GetAP_Circle() local
115 FX_FLOAT px = pt2.x - pt1.x; in GetAP_Circle()
116 FX_FLOAT py = pt2.y - pt1.y; in GetAP_Circle()
119 << pt2.x - px * FX_BEZIER << " " << pt2.y << " " << pt2.x << " " << pt2.y in GetAP_Circle()
122 px = pt3.x - pt2.x; in GetAP_Circle()
123 py = pt2.y - pt3.y; in GetAP_Circle()
125 csAP << pt2.x + px * FX_BEZIER << " " << pt2.y << " " << pt3.x << " " in GetAP_Circle()
162 CFX_PointF pt2(crBBox.left + fWidth / 2, crBBox.top); in GetAP_Diamond() local
167 csAP << pt2.x << " " << pt2.y << " l\n"; in GetAP_Diamond()
227 CFX_PointF pt2(0, fHeight / 2); in GetAP_HalfCircle() local
[all …]
DPWL_ScrollBar.cpp147 CFX_PointF pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, in GetThisAppearanceStream() local
156 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
165 CFX_PointF pt2(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f, in GetThisAppearanceStream() local
174 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
190 CFX_PointF pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
198 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
208 CFX_PointF pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
216 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
252 CFX_PointF pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, in DrawThisAppearance() local
261 path.AppendPoint(pt2, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
[all …]
DPWL_ComboBox.cpp109 CFX_PointF pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
120 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
140 CFX_PointF pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN, in DrawThisAppearance() local
151 path.AppendPoint(pt2, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
/external/pdfium/xfa/fde/tto/
Dfde_textout.cpp777 CFX_PointF pt1, pt2; in DrawLine() local
782 pt2.x = rtText.left; in DrawLine()
783 pt2.y = rtText.bottom(); in DrawLine()
787 pt2.x = rtText.right(); in DrawLine()
788 pt2.y = rtText.bottom(); in DrawLine()
790 pPath->AddLine(pt1, pt2); in DrawLine()
797 pt2.x = pt1.x; in DrawLine()
798 pt2.y = rtText.bottom(); in DrawLine()
802 pt2.x = rtText.right(); in DrawLine()
803 pt2.y = pt1.y; in DrawLine()
[all …]
/external/pdfium/xfa/fwl/theme/
Dcfwl_checkboxtp.cpp227 CFX_PointF pt2(fWidth / 4.5f, fBottom + fHeight / 16.0f); in InitCheckPath() local
246 CFX_PointF p2 = CFX_PointF(pt21.x - pt2.x, pt21.y - pt2.y) * FX_BEZIER; in InitCheckPath()
247 m_pCheckPath->BezierTo(pt1 + p1, pt2 + p2, pt2); in InitCheckPath()
249 p1 = CFX_PointF(pt23.x - pt2.x, pt23.y - pt2.y) * FX_BEZIER; in InitCheckPath()
251 m_pCheckPath->BezierTo(pt2 + p1, pt3 + p2, pt3); in InitCheckPath()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_renderer.c145 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
151 pt2[0] = (srcX + width); in add_vertex_data1()
152 pt2[1] = (srcY + height); in add_vertex_data1()
159 map_point(src_matrix, pt2[0], pt2[1], &pt2[0], &pt2[1]); in add_vertex_data1()
165 s2 = pt2[0] / src->width0; in add_vertex_data1()
169 t2 = pt2[1] / src->height0; in add_vertex_data1()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_renderer.c192 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
198 pt2[0] = (srcX + width); in add_vertex_data1()
199 pt2[1] = (srcY + height); in add_vertex_data1()
206 map_point((float *)src_matrix, pt2[0], pt2[1], &pt2[0], &pt2[1]); in add_vertex_data1()
212 s2 = pt2[0] / src->width0; in add_vertex_data1()
216 t2 = pt2[1] / src->height0; in add_vertex_data1()
/external/dng_sdk/source/
Ddng_rect.h243 const dng_point_real64 &pt2) in dng_rect_real64() argument
244 : t (Min_real64 (pt1.v, pt2.v)) in dng_rect_real64()
245 , l (Min_real64 (pt1.h, pt2.h)) in dng_rect_real64()
246 , b (Max_real64 (pt1.v, pt2.v)) in dng_rect_real64()
247 , r (Max_real64 (pt1.h, pt2.h)) in dng_rect_real64()
Ddng_bad_pixels.cpp395 const dng_point &pt2 = Point (j); in IsPointIsolated() local
397 if (pt2.v < pt.v - (int32) radius) in IsPointIsolated()
402 if (Abs_int32 (pt2.h - pt.h) <= radius) in IsPointIsolated()
414 const dng_point &pt2 = Point (k); in IsPointIsolated() local
416 if (pt2.v > pt.v + (int32) radius) in IsPointIsolated()
421 if (Abs_int32 (pt2.h - pt.h) <= radius) in IsPointIsolated()
510 const dng_point &pt2 = Point (j); in IsPointValid() local
512 if (pt2.v < pt.v) in IsPointValid()
517 if (pt2 == pt) in IsPointValid()
529 const dng_point &pt2 = Point (k); in IsPointValid() local
[all …]
/external/pdfium/xfa/fxfa/app/
Dcxfa_textlayout.cpp1188 CFX_PointF pt1, pt2; in RenderPath() local
1194 pt2.x = in RenderPath()
1196 pt1.y = pt2.y = fEndY; in RenderPath()
1197 pPath->AddLine(pt1, pt2); in RenderPath()
1203 pt2.x = in RenderPath()
1207 pt1.y = pt2.y = fEndY; in RenderPath()
1208 pPath->AddLine(pt1, pt2); in RenderPath()
1214 pt2.x = pCharPos[iChars - 1].m_Origin.x + in RenderPath()
1217 pt1.y = pt2.y = fEndY; in RenderPath()
1218 pPath->AddLine(pt1, pt2); in RenderPath()
[all …]
/external/skia/src/core/
DSkStroke.cpp680 void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) { in conicTo() argument
681 const SkConic conic(fPrevPt, pt1, pt2, weight); in conicTo()
688 this->lineTo(pt2); in conicTo()
692 this->lineTo(pt2); in conicTo()
699 this->lineTo(pt2); in conicTo()
706 this->lineTo(pt2); in conicTo()
715 this->postJoinTo(pt2, normalBC, unitBC); in conicTo()
718 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
719 const SkPoint quad[3] = { fPrevPt, pt1, pt2 }; in quadTo()
726 this->lineTo(pt2); in quadTo()
[all …]
/external/pdfium/xfa/fde/
Dfde_gedevice.cpp210 const CFX_PointF& pt2, in DrawBezier() argument
216 points.push_back(pt2); in DrawBezier()
256 const CFX_PointF& pt2, in DrawLine() argument
259 path.AddLine(pt1, pt2); in DrawLine()
Dfde_gedevice.h51 const CFX_PointF& pt2,
72 const CFX_PointF& pt2,
/external/skia/tests/
DPathOpsAngleIdeas.cpp255 static bool equalPoints(const SkDPoint& pt1, const SkDPoint& pt2, double max) { in equalPoints() argument
256 return approximately_zero_when_compared_to(pt1.fX - pt2.fX, max) in equalPoints()
257 && approximately_zero_when_compared_to(pt1.fY - pt2.fY, max); in equalPoints()
307 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
308 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
311 best2 = pt2; in bruteMinT()
362 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
367 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
370 best2 = pt2; in bruteMinT()
371 if (equalPoints(pt1, pt2, maxQuads)) { in bruteMinT()

123