Home
last modified time | relevance | path

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

1234

/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/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/skia/src/pathops/
DSkPathWriter.cpp38 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument
40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo()
41 && AlmostEqualUlps(pt2, pt3)) { in cubicTo()
51 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
53 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
122 void SkPathWriter::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo()
125 deferredLine(pt2); in quadTo()
129 fDefer[1] = pt2; in quadTo()
DSkPathWriter.h16 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3);
27 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
DSkIntersections.cpp120 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { in insertNear() argument
123 SkASSERT(pt1 != pt2); in insertNear()
126 fPt2[one ? fUsed - 1 : 0] = pt2; in insertNear()
/external/chromium_org/third_party/skia/src/pathops/
DSkPathWriter.cpp38 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument
40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo()
41 && AlmostEqualUlps(pt2, pt3)) { in cubicTo()
51 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
53 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
122 void SkPathWriter::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo()
125 deferredLine(pt2); in quadTo()
129 fDefer[1] = pt2; in quadTo()
DSkPathWriter.h16 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3);
27 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
/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()
/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/valgrind/main/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/src/pdfwindow/
DPWL_ScrollBar.cpp185 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y + PWL_TRIANGLE_HALFLEN); in GetThisAppearanceStream() local
193 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
204 CPDF_Point pt2(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y + PWL_TRIANGLE_HALFLEN); in GetThisAppearanceStream() local
212 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
230 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN,ptCenter.y - PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
238 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
249 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN,ptCenter.y + PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
257 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
295 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y + PWL_TRIANGLE_HALFLEN); in DrawThisAppearance() local
305 path.SetPoint(1, pt2.x, pt2.y, FXPT_LINETO); in DrawThisAppearance()
[all …]
DPWL_ComboBox.cpp127 …CPDF_Point pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in GetThisAppearanceStream() local
137 sButton << pt2.x << " " << pt2.y << " l\n"; in GetThisAppearanceStream()
157 …CPDF_Point pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in DrawThisAppearance() local
169 path.SetPoint(1, pt2.x, pt2.y, FXPT_LINETO); in DrawThisAppearance()
/external/chromium_org/third_party/mesa/src/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/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/pdfium/fpdfsdk/src/fxedit/
Dfxet_pageobjs.cpp47 CPDF_Point pt1(0,0), pt2(1,0); in DrawTextString() local
49 pUser2Device->Transform(pt2.x, pt2.y); in DrawTextString()
51 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString()
66 CPDF_Point pt1(0,0), pt2(1,0); in DrawTextString() local
68 pUser2Device->Transform(pt2.x, pt2.y); in DrawTextString()
70 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString()
401 const CPDF_Point& pt1, const CPDF_Point& pt2) in AddLineToPageObjects() argument
408 pPathData->SetPoint(1, pt2.x, pt2.y, FXPT_LINETO); in AddLineToPageObjects()
/external/chromium_org/third_party/mesa/src/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/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/skia/experimental/Intersection/
DCubicIntersection_Test.cpp230 int pt1, pt2, pt3;
239 pt2 = intersections2.fFlip ? intersections2.used() - pt1 - 1 : pt1;
240 tt2 = intersections2.fT[1][pt2];
274 pt2 = intersections3.fFlip ? intersections3.used() - pt3 - 1 : pt3;
275 tt2 = intersections3.fT[1][pt2];
321 int pt2, pt3; in oneOff3() local
330 pt2 = intersections3.fFlip ? intersections3.used() - pt3 - 1 : pt3; in oneOff3()
331 tt2 = intersections3.fT[1][pt2]; in oneOff3()
608 int pt2 = intersections2.fFlip ? intersections2.used() - pt - 1 : pt; local
609 double tt2 = intersections2.fT[1][pt2];
[all …]
/external/chromium_org/third_party/skia/experimental/Intersection/
DCubicIntersection_Test.cpp230 int pt1, pt2, pt3;
239 pt2 = intersections2.fFlip ? intersections2.used() - pt1 - 1 : pt1;
240 tt2 = intersections2.fT[1][pt2];
274 pt2 = intersections3.fFlip ? intersections3.used() - pt3 - 1 : pt3;
275 tt2 = intersections3.fT[1][pt2];
321 int pt2, pt3; in oneOff3() local
330 pt2 = intersections3.fFlip ? intersections3.used() - pt3 - 1 : pt3; in oneOff3()
331 tt2 = intersections3.fT[1][pt2]; in oneOff3()
608 int pt2 = intersections2.fFlip ? intersections2.used() - pt - 1 : pt; local
609 double tt2 = intersections2.fT[1][pt2];
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkStroke.cpp366 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
368 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in quadTo()
372 this->lineTo(pt2); in quadTo()
385 pts[2] = pt2; in quadTo()
418 this->postJoinTo(pt2, normalBC, unitBC); in quadTo()
421 void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2, in cubicTo() argument
424 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in cubicTo()
425 bool degenerateCD = SkPath::IsLineDegenerate(pt2, pt3); in cubicTo()
428 || (degenerateAB && SkPath::IsLineDegenerate(fPrevPt, pt2))) { in cubicTo()
439 nextPt = &pt2; in cubicTo()
[all …]
/external/skia/src/core/
DSkStroke.cpp366 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
368 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in quadTo()
372 this->lineTo(pt2); in quadTo()
385 pts[2] = pt2; in quadTo()
418 this->postJoinTo(pt2, normalBC, unitBC); in quadTo()
421 void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2, in cubicTo() argument
424 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in cubicTo()
425 bool degenerateCD = SkPath::IsLineDegenerate(pt2, pt3); in cubicTo()
438 nextPt = &pt2; in cubicTo()
450 pts[2] = pt2; in cubicTo()
/external/chromium_org/third_party/skia/tests/
DPathOpsAngleIdeas.cpp253 static bool equalPoints(const SkDPoint& pt1, const SkDPoint& pt2, double max) { in equalPoints() argument
254 return approximately_zero_when_compared_to(pt1.fX - pt2.fX, max) in equalPoints()
255 && approximately_zero_when_compared_to(pt1.fY - pt2.fY, max); in equalPoints()
305 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
306 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
309 best2 = pt2; in bruteMinT()
357 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
362 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
365 best2 = pt2; in bruteMinT()
366 if (equalPoints(pt1, pt2, maxQuads)) { in bruteMinT()
/external/skia/tests/
DPathOpsAngleIdeas.cpp253 static bool equalPoints(const SkDPoint& pt1, const SkDPoint& pt2, double max) { in equalPoints() argument
254 return approximately_zero_when_compared_to(pt1.fX - pt2.fX, max) in equalPoints()
255 && approximately_zero_when_compared_to(pt1.fY - pt2.fY, max); in equalPoints()
305 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
306 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
309 best2 = pt2; in bruteMinT()
357 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT() local
362 if (equalPoints(pt2, best2, maxQuads)) { in bruteMinT()
365 best2 = pt2; in bruteMinT()
366 if (equalPoints(pt1, pt2, maxQuads)) { in bruteMinT()

1234