Home
last modified time | relevance | path

Searched refs:pt1 (Results 1 – 25 of 54) sorted by relevance

123

/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);
DSkIntersections.cpp93 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { in insertNear() argument
96 SkASSERT(pt1 != pt2); in insertNear()
98 (void) insert(one, two, pt1); in insertNear()
DSkPathOpsPoint.h13 inline bool AlmostEqualUlps(const SkPoint& pt1, const SkPoint& pt2) { in AlmostEqualUlps() argument
14 return AlmostEqualUlps(pt1.fX, pt2.fX) && AlmostEqualUlps(pt1.fY, pt2.fY); in AlmostEqualUlps()
/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/fonttools/Lib/fontTools/misc/
DbezierTools.py24 def calcQuadraticBounds(pt1, pt2, pt3): argument
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
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
89 pt1x, pt1y = pt1
99 return [(pt1, pt2)]
104 return [(pt1, midPt), (midPt, pt2)]
[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()
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()
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 …]
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()
Dcvshapedescr.cpp134 icvFindCircle( CvPoint2D32f pt0, CvPoint2D32f pt1, in icvFindCircle() argument
137 double x1 = (pt0.x + pt1.x) * 0.5; in icvFindCircle()
138 double dy1 = pt0.x - pt1.x; in icvFindCircle()
139 double x2 = (pt1.x + pt2.x) * 0.5; in icvFindCircle()
140 double dy2 = pt1.x - pt2.x; in icvFindCircle()
141 double y1 = (pt0.y + pt1.y) * 0.5; in icvFindCircle()
142 double dx1 = pt1.y - pt0.y; in icvFindCircle()
143 double y2 = (pt1.y + pt2.y) * 0.5; in icvFindCircle()
144 double dx2 = pt2.y - pt1.y; in icvFindCircle()
/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)
297 pt1, pt2, pt3 = points[0], None, None
312 bezierSegments.append((pt1, pt2, pt3))
313 pt1, pt2, pt3 = temp, None, None
[all …]
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_ScrollBar.cpp184 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); in GetThisAppearanceStream() local
192 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
195 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
203 CPDF_Point pt1(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); in GetThisAppearanceStream() local
211 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
214 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
229 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN,ptCenter.y - PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
237 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
240 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
248 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN,ptCenter.y + PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
[all …]
DPWL_ComboBox.cpp126 …CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in GetThisAppearanceStream() local
136 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream()
139 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream()
156 …CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in DrawThisAppearance() local
168 path.SetPoint(0, pt1.x, pt1.y, FXPT_MOVETO); in DrawThisAppearance()
171 path.SetPoint(3, pt1.x, pt1.y, FXPT_LINETO); in DrawThisAppearance()
/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/jmonkeyengine/engine/src/core-data/Common/ShaderLib/
DParallax.glsllib48 vec2 pt1 = vec2( fCurrentBound, fCurrHeight );
52 float fDelta1 = pt1.x - pt1.y;
56 fParallaxAmount = (pt1.x * fDelta2 - pt2.x * fDelta1 ) / fDenominator;
/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/skia/experimental/StrokePathRenderer/
DGrStrokePathRenderer.cpp166 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/pdfium/fpdfsdk/src/fxedit/
Dfxet_pageobjs.cpp47 CPDF_Point pt1(0,0), pt2(1,0); in DrawTextString() local
48 pUser2Device->Transform(pt1.x, pt1.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
67 pUser2Device->Transform(pt1.x, pt1.y); in DrawTextString()
70 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString()
/external/freetype/src/cff/
Dcf2hints.c1296 &params.pt1, in cf2_glyphpath_pushPrevElem()
1304 &params.pt1, in cf2_glyphpath_pushPrevElem()
1310 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem()
1314 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem()
1324 &params.pt1, in cf2_glyphpath_pushPrevElem()
1358 &params.pt1, in cf2_glyphpath_pushPrevElem()
1366 &params.pt1, in cf2_glyphpath_pushPrevElem()
1371 if ( params.pt1.x != glyphpath->currentDS.x || in cf2_glyphpath_pushPrevElem()
1372 params.pt1.y != glyphpath->currentDS.y ) in cf2_glyphpath_pushPrevElem()
1381 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem()
[all …]
Dcf2ft.c174 params->pt1.x, in cf2_builder_lineTo()
175 params->pt1.y ); in cf2_builder_lineTo()
226 params->pt1.x, in cf2_builder_cubeTo()
227 params->pt1.y, 0 ); in cf2_builder_cubeTo()
/external/pdfium/third_party/freetype/src/cff/
Dcf2hints.c1295 &params.pt1, in cf2_glyphpath_pushPrevElem()
1303 &params.pt1, in cf2_glyphpath_pushPrevElem()
1309 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem()
1313 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem()
1323 &params.pt1, in cf2_glyphpath_pushPrevElem()
1357 &params.pt1, in cf2_glyphpath_pushPrevElem()
1365 &params.pt1, in cf2_glyphpath_pushPrevElem()
1370 if ( params.pt1.x != glyphpath->currentDS.x || in cf2_glyphpath_pushPrevElem()
1371 params.pt1.y != glyphpath->currentDS.y ) in cf2_glyphpath_pushPrevElem()
1380 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp528 static int quad_proc(const FT_Vector* pt0, const FT_Vector* pt1, in quad_proc() argument
532 SkFDot6ToScalar(pt1->x), -SkFDot6ToScalar(pt1->y)); in quad_proc()
536 static int cubic_proc(const FT_Vector* pt0, const FT_Vector* pt1, in cubic_proc() argument
540 SkFDot6ToScalar(pt1->x), -SkFDot6ToScalar(pt1->y), in cubic_proc()
/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()
300 SkDPoint pt1 = quad1.ptAtT(tRange.t1); in bruteMinT() local
301 if (equalPoints(pt1, best1, maxQuads)) { in bruteMinT()
304 best1 = pt1; in bruteMinT()
356 SkDPoint pt1 = quad1.ptAtT(tRange.t1); in bruteMinT() local
358 if (equalPoints(pt1, best1, maxQuads)) { in bruteMinT()
361 best1 = pt1; in bruteMinT()
366 if (equalPoints(pt1, pt2, maxQuads)) { in bruteMinT()
/external/skia/src/core/
DSkStroke.cpp779 void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) { in conicTo() argument
780 const SkConic conic(fPrevPt, pt1, pt2, weight); in conicTo()
800 if (!this->preJoinTo(pt1, &normalAB, &unitAB, false)) { in conicTo()
814 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument
816 const SkPoint quad[3] = { fPrevPt, pt1, pt2 }; in quadTo()
836 if (!this->preJoinTo(pt1, &normalAB, &unitAB, false)) { in quadTo()
847 bool degenerateAB = SkPath::IsLineDegenerate(fPrevPt, pt1); in quadTo()
848 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in quadTo()
859 this->preJoinTo(pt1, &normalAB, &unitAB, false); in quadTo()
864 pts[1] = pt1; in quadTo()
[all …]

123