Searched refs:pt2 (Results 1 - 25 of 55) sorted by relevance

123

/external/skia/src/pathops/
H A DSkPathWriter.cpp38 void SkPathWriter::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) { argument
40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) {
41 deferredLine(pt2);
45 fDefer[1] = pt2;
56 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { argument
58 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)
59 && AlmostEqualUlps(pt2, pt3)) {
69 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY);
71 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2
140 quadTo(const SkPoint& pt1, const SkPoint& pt2) argument
[all...]
H A DSkPathWriter.h16 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 DSkIntersections.cpp93 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { argument
96 SkASSERT(pt1 != pt2);
99 fPt2[one ? 1 : 0] = pt2;
H A DSkPathOpsPoint.h13 inline bool AlmostEqualUlps(const SkPoint& pt1, const SkPoint& pt2) { argument
14 return AlmostEqualUlps(pt1.fX, pt2.fX) && AlmostEqualUlps(pt1.fY, pt2.fY);
H A DSkIntersections.h151 const SkDPoint& pt2(int index) const { function in class:SkIntersections
242 void insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2);
/external/opencv/cv/src/
H A D_cvgeom.h46 CV_INLINE float icvDistanceL2_32f( CvPoint2D32f pt1, CvPoint2D32f pt2 )
48 float dx = pt2.x - pt1.x;
49 float dy = pt2.y - pt1.y;
H A Dcvpgh.cpp192 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;
243 int d2 = (pt4.y - pt1.y) * dx - (pt2.x - pt1.x) * dy;
H A Dcvcontourtree.cpp73 CvPoint *pt1, *pt2; /* pointer to current points */ local
161 pt2 = pt_n;
172 pt2 = pt_n;
182 pt2 = pt_p;
328 pt2[i_buf] = t;
380 t = pt2[0];
381 tn1 = pt2[1];
382 tn2 = pt2[2];
383 tp1 = pt2[3];
/external/valgrind/drd/tests/
H A Dpth_cleanup_handler.c39 pthread_t pt1, pt2; local
54 if (pthread_create(&pt2, NULL, f, NULL) != 0)
61 pthread_join(pt2, 0);
/external/fonttools/Lib/fontTools/pens/
H A DbasePen.py164 def _curveToOne(self, pt1, pt2, pt3):
175 def _qCurveToOne(self, pt1, pt2):
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
291 This function returns a list of (pt1, pt2, pt
[all...]
/external/fonttools/Tools/fontTools/pens/
H A DbasePen.py164 def _curveToOne(self, pt1, pt2, pt3):
175 def _qCurveToOne(self, pt1, pt2):
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
291 This function returns a list of (pt1, pt2, pt
[all...]
/external/fonttools/Lib/fontTools/misc/
H A DbezierTools.py24 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)
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)
70 def splitLine(pt1, pt2, where, isHorizontal):
71 """Split the line between pt1 and pt2 at position 'where', which
90 pt2x, pt2y = pt2
99 return [(pt1, pt2)]
[all...]
/external/fonttools/Tools/fontTools/misc/
H A DbezierTools.py24 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)
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)
70 def splitLine(pt1, pt2, where, isHorizontal):
71 """Split the line between pt1 and pt2 at position 'where', which
90 pt2x, pt2y = pt2
99 return [(pt1, pt2)]
[all...]
/external/opencv/cxcore/src/
H A Dcxdrawing.cpp81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 )
93 if( !pt1 || !pt2 )
99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y;
143 pt2->x = x2;
144 pt2->y = y2;
160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, argument
184 (unsigned)pt2.x >= (unsigned)(mat->width) ||
186 (unsigned)pt2.y >= (unsigned)(mat->height) )
193 dx = pt2
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
2539 CvPoint pt1, pt2; local
[all...]
/external/freetype/src/cff/
H A Dcf2glue.h106 FT_Vector pt2; member in struct:CF2_CallbackParamsRec_
/external/pdfium/third_party/freetype/src/cff/
H A Dcf2glue.h106 FT_Vector pt2; member in struct:CF2_CallbackParamsRec_
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_renderer.c192 float pt0[2], pt1[2], pt2[2], pt3[2]; local
198 pt2[0] = (srcX + width);
199 pt2[1] = (srcY + height);
206 map_point((float *)src_matrix, pt2[0], pt2[1], &pt2[0], &pt2[1]);
212 s2 = pt2[0] / src->width0;
216 t2 = pt2[1] / src->height0;
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_renderer.c145 float pt0[2], pt1[2], pt2[2], pt3[2]; local
151 pt2[0] = (srcX + width);
152 pt2[1] = (srcY + height);
159 map_point(src_matrix, pt2[0], pt2[1], &pt2[0], &pt2[1]);
165 s2 = pt2[0] / src->width0;
169 t2 = pt2[1] / src->height0;
/external/pdfium/fpdfsdk/src/pdfwindow/
H A DPWL_ScrollBar.cpp185 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y + PWL_TRIANGLE_HALFLEN);
193 sButton << pt2.x << " " << pt2.y << " l\n";
204 CPDF_Point pt2(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y + PWL_TRIANGLE_HALFLEN);
212 sButton << pt2.x << " " << pt2.y << " l\n";
230 CPDF_Point pt2(ptCenter.x + PWL_TRIANGLE_HALFLEN,ptCenter.y - PWL_TRIANGLE_HALFLEN * 0.5f);
238 sButton << pt2.x << " " << pt2.y << " l\n";
249 CPDF_Point pt2(ptCente
[all...]
H A DPWL_ComboBox.cpp127 CPDF_Point pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFLEN * 0.5f);
137 sButton << pt2.x << " " << pt2.y << " l\n";
157 CPDF_Point pt2(ptCenter.x + PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFLEN * 0.5f);
169 path.SetPoint(1, pt2.x, pt2.y, FXPT_LINETO);
/external/pdfium/fpdfsdk/src/fxedit/
H A Dfxet_pageobjs.cpp47 CPDF_Point pt1(0,0), pt2(1,0);
49 pUser2Device->Transform(pt2.x, pt2.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);
68 pUser2Device->Transform(pt2.x, pt2.y);
70 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2
[all...]
/external/skia/src/core/
H A DSkStroke.cpp779 void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) {
780 const SkConic conic(fPrevPt, pt1, pt2, weight);
787 this->lineTo(pt2);
794 this->lineTo(pt2);
801 this->lineTo(pt2);
810 this->postJoinTo(pt2, normalBC, unitBC);
814 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) {
816 const SkPoint quad[3] = { fPrevPt, pt1, pt2 };
823 this->lineTo(pt2);
830 this->lineTo(pt2);
[all...]
/external/skia/tests/
H A DPathOpsAngleIdeas.cpp253 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);
305 SkDPoint pt2 = quad2.ptAtT(tRange.t2); local
306 if (equalPoints(pt2, best2, maxQuads)) {
309 best2 = pt2;
357 SkDPoint pt2 = quad2.ptAtT(tRange.t2); local
362 if (equalPoints(pt2, best2, maxQuads)) {
365 best2 = pt2;
366 if (equalPoints(pt1, pt2, maxQuad
[all...]
/external/opencv/
H A Dcvjni.cpp619 CvPoint pt2 = cvPoint(int((face->x + face->width) * scale), local
621 sprintf(buffer, "Draw Rectangle: (%d, %d) to (%d, %d)", pt1.x, pt1.y, pt2.x, pt2.y);
623 cvRectangle(sourceImage, pt1, pt2, CV_RGB(255, 0, 0), 3, 8, 0);
/external/skia/experimental/StrokePathRenderer/
H A DGrStrokePathRenderer.cpp180 const SkPoint pt2 = *pt0+v0, pt3 = *pt1+v1;
181 if (intersection(*pt0, pt2, *pt1, pt3, miterPt[0]) !=

Completed in 934 milliseconds

123