Home
last modified time | relevance | path

Searched full:pt1 (Results 1 – 25 of 113) sorted by relevance

12345

/external/llvm/include/llvm/ADT/
DPointerUnion.h53 template <typename PT1, typename PT2>
59 PT1BitsAv = (int)(PointerLikeTypeTraits<PT1>::NumLowBitsAvailable),
80 template <typename PT1, typename PT2>
84 PointerUnionUIntTraits<PT1,PT2> > ValTy;
100 PointerUnion(PT1 V) : Val(
101 const_cast<void *>(PointerLikeTypeTraits<PT1>::getAsVoidPointer(V))) {
112 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer());
120 ::llvm::PointerUnionTypeSelector<PT1, T, IsPT1,
145 PT1 const *getAddrOfPtr1() const {
151 PT1 *getAddrOfPtr1() {
[all …]
/external/skia/src/pathops/
DSkPathWriter.cpp38 void SkPathWriter::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) { in conicTo() argument
40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in conicTo()
50 pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY, weight); in conicTo()
52 fPathPtr->conicTo(pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY, weight); in conicTo()
56 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument
58 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo()
69 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
71 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo()
140 void SkPathWriter::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
142 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo()
[all …]
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);
/external/opencv3/modules/imgproc/src/
Ddrawing.cpp80 bool clipLine( Size img_size, Point& pt1, Point& pt2 ) in clipLine() argument
89 x1 = pt1.x; y1 = pt1.y; x2 = pt2.x; y2 = pt2.y; in clipLine()
130 pt1.x = (int)x1; in clipLine()
131 pt1.y = (int)y1; in clipLine()
139 bool clipLine( Rect img_rect, Point& pt1, Point& pt2 ) in clipLine() argument
142 pt1 -= tl; pt2 -= tl; in clipLine()
143 bool inside = clipLine(img_rect.size(), pt1, pt2); in clipLine()
144 pt1 += tl; pt2 += tl; in clipLine()
153 LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2, in LineIterator() argument
160 if( (unsigned)pt1.x >= (unsigned)(img.cols) || in LineIterator()
[all …]
D_geom.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()
/external/fonttools/Lib/fontTools/misc/
DbezierTools.py24 def calcQuadraticBounds(pt1, pt2, pt3): argument
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): argument
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 … = [(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): argument
71 """Split the line between pt1 and pt2 at position 'where', which
[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()
141 pt1->x = x1; in cvClipLine()
142 pt1->y = y1; in cvClipLine()
160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, in cvInitLineIterator() argument
183 if( (unsigned)pt1.x >= (unsigned)(mat->width) || in cvInitLineIterator()
185 (unsigned)pt1.y >= (unsigned)(mat->height) || in cvInitLineIterator()
193 dx = pt2.x - pt1.x; in cvInitLineIterator()
194 dy = pt2.y - pt1.y; in cvInitLineIterator()
[all …]
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_ScrollBar.cpp148 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f, ptCenter.y); in GetThisAppearanceStream() local
157 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
160 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
166 CPDF_Point pt1(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, ptCenter.y); in GetThisAppearanceStream() local
175 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
178 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
190 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
199 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
202 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
208 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
[all …]
DPWL_ComboBox.cpp120 CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local
132 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
135 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
151 CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN, in DrawThisAppearance() local
165 path.SetPoint(0, pt1.x, pt1.y, FXPT_MOVETO); in DrawThisAppearance()
168 path.SetPoint(3, pt1.x, pt1.y, FXPT_LINETO); in DrawThisAppearance()
/external/fonttools/Lib/fontTools/pens/
DbasePen.py164 def _curveToOne(self, pt1, pt2, pt3): argument
175 def _qCurveToOne(self, pt1, pt2): argument
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, pt2, pt3))
[all …]
/external/opencv/cv/src/
Dcvcontourtree.cpp73 CvPoint *pt1, *pt2; /* pointer to current points */ in icvCreateContourTree() local
160 pt1 = pt_p; in icvCreateContourTree()
171 pt1 = pt_p; in icvCreateContourTree()
181 pt1 = pt_n; in icvCreateContourTree()
187 t = pt1[0]; in icvCreateContourTree()
189 tp1 = pt1[i - 1]; in icvCreateContourTree()
191 tp2 = pt1[i - 2]; in icvCreateContourTree()
193 tp3 = pt1[i - 3]; in icvCreateContourTree()
195 tn1 = pt1[1]; in icvCreateContourTree()
197 tn2 = pt1[2]; in icvCreateContourTree()
[all …]
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()
242 int d1 = (pt3.y - pt1.y) * dx - (pt3.x - pt1.x) * dy; in icvCalcPGH()
243 int d2 = (pt4.y - pt1.y) * dx - (pt2.x - pt1.x) * dy; in icvCalcPGH()
/external/opencv3/samples/cpp/
Ddrawing.cpp36 Point pt1, pt2; in main() local
37 pt1.x = rng.uniform(x1, x2); in main()
38 pt1.y = rng.uniform(y1, y2); in main()
42 line( image, pt1, pt2, randomColor(rng), rng.uniform(1,10), lineType ); in main()
51 Point pt1, pt2; in main() local
52 pt1.x = rng.uniform(x1, x2); in main()
53 pt1.y = rng.uniform(y1, y2); in main()
58 rectangle( image, pt1, pt2, randomColor(rng), MAX(thickness, -1), lineType ); in main()
Dhoughlines.cpp40 Point pt1, pt2; in main()
43 pt1.x = cvRound(x0 + 1000*(-b)); in main()
44 pt1.y = cvRound(y0 + 1000*(a)); in main()
47 line( cdst, pt1, pt2, Scalar(0,0,255), 3, CV_AA); in main()
/external/pdfium/xfa/src/fwl/src/theme/
Dcheckboxtp.cpp464 CFX_PointF pt1; in initCheckPath() local
465 pt1.Set(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in initCheckPath()
494 m_pCheckPath->MoveTo(pt1.x, pt1.y); in initCheckPath()
495 px1 = pt12.x - pt1.x; in initCheckPath()
496 py1 = pt12.y - pt1.y; in initCheckPath()
499 m_pCheckPath->BezierTo(pt1.x + px1 * FWLTHEME_BEZIER, in initCheckPath()
500 pt1.y + py1 * FWLTHEME_BEZIER, in initCheckPath()
529 px2 = pt15.x - pt1.x; in initCheckPath()
530 py2 = pt15.y - pt1.y; in initCheckPath()
533 pt1.x + px2 * FWLTHEME_BEZIER, in initCheckPath()
[all …]
/external/opencv3/doc/tutorials/core/random_generator_and_text/
Drandom_generator_and_text.markdown87 Point pt1, pt2;
91 pt1.x = rng.uniform( x_1, x_2 );
92 pt1.y = rng.uniform( y_1, y_2 );
96 line( image, pt1, pt2, randomColor(rng), rng.uniform(1, 10), 8 );
108 - The line extremes are given by *pt1* and *pt2*. For *pt1* we can see that:
110 pt1.x = rng.uniform( x_1, x_2 );
111 pt1.y = rng.uniform( y_1, y_2 );
116 - From the explanation above, we deduce that the extremes *pt1* and *pt2* will be random
/external/opencv3/samples/cpp/tutorial_code/viz/
Dcreating_widgets.cpp45 …WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color = v…
52 WTriangle::WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color &… in WTriangle() argument
56 points->InsertNextPoint(pt1.x, pt1.y, pt1.z); in WTriangle()
/external/opencv3/samples/cpp/tutorial_code/core/Matrix/
DDrawing_2.cpp110 Point pt1, pt2; in Drawing_Random_Lines() local
114 pt1.x = rng.uniform( x_1, x_2 ); in Drawing_Random_Lines()
115 pt1.y = rng.uniform( y_1, y_2 ); in Drawing_Random_Lines()
119 line( image, pt1, pt2, randomColor(rng), rng.uniform(1, 10), 8 ); in Drawing_Random_Lines()
133 Point pt1, pt2; in Drawing_Random_Rectangles() local
139 pt1.x = rng.uniform( x_1, x_2 ); in Drawing_Random_Rectangles()
140 pt1.y = rng.uniform( y_1, y_2 ); in Drawing_Random_Rectangles()
144 rectangle( image, pt1, pt2, randomColor(rng), MAX( thickness, -1 ), lineType ); in Drawing_Random_Rectangles()
/external/pdfium/xfa/src/fdp/src/tto/
Dfde_textout.cpp852 CFX_PointF pt1, pt2; in DrawLine() local
855 pt1.x = rtText.left; in DrawLine()
856 pt1.y = rtText.top; in DrawLine()
860 pt1.x = rtText.left; in DrawLine()
861 pt1.y = rtText.bottom(); in DrawLine()
865 pPath->AddLine(pt1, pt2); in DrawLine()
870 pt1.x = rtText.left + rtText.width * 2.0f / 5.0f; in DrawLine()
871 pt1.y = rtText.top; in DrawLine()
873 pt2.x = pt1.x; in DrawLine()
876 pt1.x = rtText.left; in DrawLine()
[all …]
/external/valgrind/drd/tests/
Dpth_cleanup_handler.c39 pthread_t pt1, pt2; in main() local
49 if (pthread_create(&pt1, NULL, f, NULL) != 0) in main()
60 pthread_join(pt1, 0); in main()
/external/pdfium/xfa/src/fdp/src/fde/
Dfde_gedevice.cpp227 const CFX_PointF& pt1, in DrawBezier() argument
233 points.Add(pt1); in DrawBezier()
269 const CFX_PointF& pt1, in DrawLine() argument
273 path.AddLine(pt1, pt2); in DrawLine()
538 CFX_PointF pt0, pt1; in FillLinearGradientPath() local
539 pLinearBrush->GetLinearPoints(pt0, pt1); in FillLinearGradientPath()
541 fDiagonal.Set(pt0, pt1); in FillLinearGradientPath()
564 pt1 = pt0; in FillLinearGradientPath()
569 dev.DrawCosmeticLine(pt0.x, pt0.y, pt1.x, pt1.y, cr0); in FillLinearGradientPath()
570 pt1.x += dx; in FillLinearGradientPath()
/external/pdfium/fpdfsdk/src/fxedit/
Dfxet_pageobjs.cpp52 CPDF_Point pt1(0, 0), pt2(1, 0); in DrawTextString() local
53 pUser2Device->Transform(pt1.x, pt1.y); in DrawTextString()
57 (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString()
72 CPDF_Point pt1(0, 0), pt2(1, 0); in DrawTextString() local
73 pUser2Device->Transform(pt1.x, pt1.y); in DrawTextString()
77 (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_renderer.c145 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
149 pt1[0] = (srcX + width); in add_vertex_data1()
150 pt1[1] = srcY; in add_vertex_data1()
158 map_point(src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); in add_vertex_data1()
164 s1 = pt1[0] / src->width0; in add_vertex_data1()
168 t1 = pt1[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
196 pt1[0] = (srcX + width); in add_vertex_data1()
197 pt1[1] = srcY; in add_vertex_data1()
205 map_point((float *)src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); in add_vertex_data1()
211 s1 = pt1[0] / src->width0; in add_vertex_data1()
215 t1 = pt1[1] / src->height0; in add_vertex_data1()
/external/opencv3/modules/java/src/
Dimgproc+Imgproc.java2496 …// C++: void line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType =…
2499 //javadoc: line(img, pt1, pt2, color, thickness, lineType, shift)
2500 …public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, … in line() argument
2503 …line_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.… in line()
2508 //javadoc: line(img, pt1, pt2, color, thickness)
2509 public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness) in line() argument
2512 …line_1(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.… in line()
2517 //javadoc: line(img, pt1, pt2, color)
2518 public static void line(Mat img, Point pt1, Point pt2, Scalar color) in line() argument
2521 …line_2(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.… in line()
[all …]

12345