Home
last modified time | relevance | path

Searched refs:pt3 (Results 1 – 25 of 36) sorted by relevance

12

/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)
109 def splitQuadratic(pt1, pt2, pt3, where, isHorizontal): argument
132 a, b, c = calcQuadraticParameters(pt1, pt2, pt3)
137 return [(pt1, pt2, pt3)]
141 def splitCubic(pt1, pt2, pt3, pt4, where, isHorizontal): argument
156 a, b, c, d = calcCubicParameters(pt1, pt2, pt3, pt4)
[all …]
/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
58 points->InsertNextPoint(pt3.x, pt3.y, pt3.z); in WTriangle()
/external/fonttools/Lib/fontTools/pens/
DbasePen.py164 def _curveToOne(self, pt1, pt2, pt3): argument
245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points):
246 _curveToOne(pt1, pt2, pt3)
247 self.__currentPoint = pt3
297 pt1, pt2, pt3 = points[0], None, None
310 pt3 = (0.5 * (pt2[0] + temp[0]),
312 bezierSegments.append((pt1, pt2, pt3))
313 pt1, pt2, pt3 = temp, None, None
/external/opencv/cv/src/
Dcvpgh.cpp236 CvPoint pt3, pt4; in icvCalcPGH() local
238 CV_READ_EDGE( pt3, pt4, reader2 ); in icvCalcPGH()
242 int d1 = (pt3.y - pt1.y) * dx - (pt3.x - pt1.x) * dy; in icvCalcPGH()
249 int dp = (pt4.x - pt3.x) * dx + (pt4.y - pt3.y) * dy; in icvCalcPGH()
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_ScrollBar.cpp151 CPDF_Point pt3(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, in GetThisAppearanceStream() local
159 sButton << pt3.x << " " << pt3.y << " l\n"; in GetThisAppearanceStream()
169 CPDF_Point pt3(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f, in GetThisAppearanceStream() local
177 sButton << pt3.x << " " << pt3.y << " l\n"; in GetThisAppearanceStream()
194 CPDF_Point pt3(ptCenter.x, ptCenter.y + PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
201 sButton << pt3.x << " " << pt3.y << " l\n"; in GetThisAppearanceStream()
212 CPDF_Point pt3(ptCenter.x, ptCenter.y - PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local
219 sButton << pt3.x << " " << pt3.y << " l\n"; in GetThisAppearanceStream()
256 CPDF_Point pt3(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, in DrawThisAppearance() local
266 path.SetPoint(2, pt3.x, pt3.y, FXPT_LINETO); in DrawThisAppearance()
[all …]
DPWL_ComboBox.cpp124 CPDF_Point pt3(ptCenter.x, in GetThisAppearanceStream() local
134 sButton << pt3.x << " " << pt3.y << " l\n"; in GetThisAppearanceStream()
155 CPDF_Point pt3(ptCenter.x, in DrawThisAppearance() local
167 path.SetPoint(2, pt3.x, pt3.y, FXPT_LINETO); in DrawThisAppearance()
DPWL_Utils.cpp195 CPDF_Point pt3(crBBox.right, crBBox.bottom + fHeight / 2); in GetAP_Circle() local
207 px = pt3.x - pt2.x; in GetAP_Circle()
208 py = pt2.y - pt3.y; in GetAP_Circle()
210 csAP << pt2.x + px * PWL_BEZIER << " " << pt2.y << " " << pt3.x << " " in GetAP_Circle()
211 << pt3.y + py * PWL_BEZIER << " " << pt3.x << " " << pt3.y << " c\n"; in GetAP_Circle()
213 px = pt3.x - pt4.x; in GetAP_Circle()
214 py = pt3.y - pt4.y; in GetAP_Circle()
216 csAP << pt3.x << " " << pt3.y - py * PWL_BEZIER << " " in GetAP_Circle()
248 CPDF_Point pt3(crBBox.right, crBBox.bottom + fHeight / 2); in GetAP_Diamond() local
253 csAP << pt3.x << " " << pt3.y << " l\n"; in GetAP_Diamond()
[all …]
/external/pdfium/xfa/src/fwl/src/theme/
Dcheckboxtp.cpp468 CFX_PointF pt3; in initCheckPath() local
469 pt3.Set(fWidth / 3.0f, fBottom); in initCheckPath()
505 px2 = pt32.x - pt3.x; in initCheckPath()
506 py2 = pt32.y - pt3.y; in initCheckPath()
509 pt3.x + px2 * FWLTHEME_BEZIER, in initCheckPath()
510 pt3.y + py2 * FWLTHEME_BEZIER, pt3.x, pt3.y); in initCheckPath()
511 px1 = pt34.x - pt3.x; in initCheckPath()
512 py1 = pt34.y - pt3.y; in initCheckPath()
515 m_pCheckPath->BezierTo(pt3.x + px1 * FWLTHEME_BEZIER, in initCheckPath()
516 pt3.y + py1 * FWLTHEME_BEZIER, 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
153 pt3[0] = srcX; in add_vertex_data1()
154 pt3[1] = (srcY + height); in add_vertex_data1()
160 map_point(src_matrix, pt3[0], pt3[1], &pt3[0], &pt3[1]); in add_vertex_data1()
166 s3 = pt3[0] / src->width0; in add_vertex_data1()
170 t3 = pt3[1] / src->height0; in add_vertex_data1()
/external/skia/src/pathops/
DSkPathWriter.cpp56 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument
59 && AlmostEqualUlps(pt2, pt3)) { in cubicTo()
60 deferredLine(pt3); in cubicTo()
64 fDefer[1] = pt3; in cubicTo()
DSkPathWriter.h17 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3);
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_renderer.c192 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
200 pt3[0] = srcX; in add_vertex_data1()
201 pt3[1] = (srcY + height); in add_vertex_data1()
207 map_point((float *)src_matrix, pt3[0], pt3[1], &pt3[0], &pt3[1]); in add_vertex_data1()
213 s3 = pt3[0] / src->width0; in add_vertex_data1()
217 t3 = pt3[1] / src->height0; in add_vertex_data1()
/external/skia/tests/
DPathOpsConicIntersectionTest.cpp317 for (int pt3 = 0; pt3 < intersections.used(); ++pt3) { in oneOff() local
318 tt1 = intersections[0][pt3]; in oneOff()
320 tt2 = intersections[1][pt3]; in oneOff()
322 const SkDPoint& iPt = intersections.pt(pt3); in oneOff()
DPathOpsCubicIntersectionTest.cpp410 for (int pt3 = 0; pt3 < intersections.used(); ++pt3) { in oneOff() local
411 tt1 = intersections[0][pt3]; in oneOff()
413 tt2 = intersections[1][pt3]; in oneOff()
415 const SkDPoint& iPt = intersections.pt(pt3); in oneOff()
/external/freetype/src/cff/
Dcf2glue.h107 FT_Vector pt3; member
Dcf2ft.c232 params->pt3.x, in cf2_builder_cubeTo()
233 params->pt3.y, 1 ); in cf2_builder_cubeTo()
/external/pdfium/third_party/freetype/src/cff/
Dcf2glue.h107 FT_Vector pt3; member
Dcf2ft.c232 params->pt3.x, in cf2_builder_cubeTo()
233 params->pt3.y, 1 ); in cf2_builder_cubeTo()
/external/opencv3/doc/tutorials/viz/creating_widgets/
Dcreating_widgets.markdown28 …WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color = v…
/external/skia/src/core/
DSkStroke.cpp1214 const SkPoint& pt3) { in cubicTo() argument
1215 const SkPoint cubic[4] = { fPrevPt, pt1, pt2, pt3 }; in cubicTo()
1223 this->lineTo(pt3); in cubicTo()
1227 this->lineTo(pt3); in cubicTo()
1240 this->lineTo(pt3); in cubicTo()
1247 this->lineTo(pt3); in cubicTo()
1266 this->postJoinTo(pt3, normalCD, unitCD); in cubicTo()
/external/pdfium/xfa/src/fdp/include/
Dfde_rdv.h52 const CFX_PointF& pt3,
/external/pdfium/xfa/src/fdp/src/fde/
Dfde_gedevice.h43 const CFX_PointF& pt3,
Dfde_gdidevice.cpp244 const CFX_PointF& pt3, in DrawBezier() argument
253 pGdiPen, pt1.x, pt1.y, pt2.x, pt2.y, pt3.x, pt3.y, pt4.x, pt4.y); in DrawBezier()
Dfde_gdidevice.h58 const CFX_PointF& pt3,
/external/mesa3d/src/gallium/state_trackers/vega/
Dbezier.c190 float *pt3, in bezier_init2v() argument
199 bez->x3 = pt3[0]; in bezier_init2v()
200 bez->y3 = pt3[1]; in bezier_init2v()

12