Home
last modified time | relevance | path

Searched refs:nearestTime (Results 1 – 25 of 86) sorted by relevance

1234

/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/live_effects/
H A Dlpe-perspective-envelope.cpp350 Geom::Point nearest = vert.pointAt(vert.nearestTime(A)); in vertical()
371 Geom::Point nearest = horiz.pointAt(horiz.nearestTime(A)); in horizontal()
447 Geom::Point point_a = line_a.pointAt(line_a.nearestTime(handles[0])); in doBeforeEffect()
451 Geom::Point point_b = line_b.pointAt(line_b.nearestTime(handles[0])); in doBeforeEffect()
455 Geom::Point point_c = line_c.pointAt(line_c.nearestTime(handles[0])); in doBeforeEffect()
465 Geom::Point point_a = line_a.pointAt(line_a.nearestTime(handles[1])); in doBeforeEffect()
469 Geom::Point point_b = line_b.pointAt(line_b.nearestTime(handles[1])); in doBeforeEffect()
473 Geom::Point point_c = line_c.pointAt(line_c.nearestTime(handles[1])); in doBeforeEffect()
483 Geom::Point point_a = line_a.pointAt(line_a.nearestTime(handles[2])); in doBeforeEffect()
487 Geom::Point point_b = line_b.pointAt(line_b.nearestTime(handles[2])); in doBeforeEffect()
[all …]
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/include/2geom/
H A Dcurve.h248 virtual Coord nearestTime( Point const& p, Coord a = 0, Coord b = 1 ) const;
251 Coord nearestTime(Point const &p, Interval const &i) const { in nearestTime() function
252 return nearestTime(p, i.min(), i.max()); in nearestTime()
346 return c.nearestTime(p); in nearest_time()
H A Dline.h251 Coord nearestTime(Point const &p) const { in nearestTime() function
382 if (distance(pointAt(nearestTime(other._initial)), other._initial) != 0) return false;
383 if (distance(pointAt(nearestTime(other._final)), other._final) != 0) return false;
413 Coord t = line.nearestTime(p); in distance()
466 double t = seg.nearestTime(p); in distance()
514 return line.pointAt(line.nearestTime(p)); in projection()
520 return line.segment(line.nearestTime(seg.initialPoint()), in projection()
521 line.nearestTime(seg.finalPoint())); in projection()
H A Dbezier-curve.h160 virtual Coord nearestTime(Point const &p, Coord from = 0, Coord to = 1) const;
275 virtual Coord nearestTime(Point const &p, Coord from = 0, Coord to = 1) const {
276 return BezierCurve::nearestTime(p, from, to);
320 template <> Coord BezierCurveN<1>::nearestTime(Point const &, Coord, Coord) const;
H A Dray.h102 Coord nearestTime(Point const& point) const { in nearestTime() function
127 double t = _ray.nearestTime(_point); in distance()
/dports/math/lib2geom/lib2geom-1.1/include/2geom/
H A Dcurve.h248 virtual Coord nearestTime( Point const& p, Coord a = 0, Coord b = 1 ) const;
251 Coord nearestTime(Point const &p, Interval const &i) const { in nearestTime() function
252 return nearestTime(p, i.min(), i.max()); in nearestTime()
346 return c.nearestTime(p); in nearest_time()
H A Dline.h251 Coord nearestTime(Point const &p) const { in nearestTime() function
382 if (distance(pointAt(nearestTime(other._initial)), other._initial) != 0) return false;
383 if (distance(pointAt(nearestTime(other._final)), other._final) != 0) return false;
413 Coord t = line.nearestTime(p); in distance()
466 double t = seg.nearestTime(p); in distance()
514 return line.pointAt(line.nearestTime(p)); in projection()
520 return line.segment(line.nearestTime(seg.initialPoint()), in projection()
521 line.nearestTime(seg.finalPoint())); in projection()
H A Dbezier-curve.h160 Coord nearestTime(Point const &p, Coord from = 0, Coord to = 1) const override;
275 Coord nearestTime(Point const &p, Coord from = 0, Coord to = 1) const override {
276 return BezierCurve::nearestTime(p, from, to);
320 template <> Coord BezierCurveN<1>::nearestTime(Point const &, Coord, Coord) const;
H A Dray.h102 Coord nearestTime(Point const& point) const { in nearestTime() function
127 double t = _ray.nearestTime(_point); in distance()
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/tests/
H A Dpath-test.cpp222 EXPECT_EQ(0, line.nearestTime(Point(0,0)).asFlatTime()); in TEST_F()
223 EXPECT_EQ(0.5, line.nearestTime(Point(0.5,0)).asFlatTime()); in TEST_F()
224 EXPECT_EQ(0.5, line.nearestTime(Point(0.5,1)).asFlatTime()); in TEST_F()
225 EXPECT_EQ(1, line.nearestTime(Point(100,0)).asFlatTime()); in TEST_F()
226 EXPECT_EQ(0, line.nearestTime(Point(-100,1000)).asFlatTime()); in TEST_F()
228 EXPECT_EQ(0, square.nearestTime(Point(0,0)).asFlatTime()); in TEST_F()
229 EXPECT_EQ(1, square.nearestTime(Point(1,0)).asFlatTime()); in TEST_F()
230 EXPECT_EQ(3, square.nearestTime(Point(0,1)).asFlatTime()); in TEST_F()
235 EXPECT_FLOAT_EQ(6.5814033, diederik.nearestTime(p).asFlatTime()); in TEST_F()
/dports/math/lib2geom/lib2geom-1.1/tests/
H A Dpath-test.cpp222 EXPECT_EQ(0, line.nearestTime(Point(0,0)).asFlatTime()); in TEST_F()
223 EXPECT_EQ(0.5, line.nearestTime(Point(0.5,0)).asFlatTime()); in TEST_F()
224 EXPECT_EQ(0.5, line.nearestTime(Point(0.5,1)).asFlatTime()); in TEST_F()
225 EXPECT_EQ(1, line.nearestTime(Point(100,0)).asFlatTime()); in TEST_F()
226 EXPECT_EQ(0, line.nearestTime(Point(-100,1000)).asFlatTime()); in TEST_F()
228 EXPECT_EQ(0, square.nearestTime(Point(0,0)).asFlatTime()); in TEST_F()
229 EXPECT_EQ(1, square.nearestTime(Point(1,0)).asFlatTime()); in TEST_F()
230 EXPECT_EQ(3, square.nearestTime(Point(0,1)).asFlatTime()); in TEST_F()
235 EXPECT_FLOAT_EQ(6.5814033, diederik.nearestTime(p).asFlatTime()); in TEST_F()
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/src/py2geom/
H A Dray.cpp75 .def("nearestTime", &Geom::Ray::nearestTime) in wrap_ray()
79 .def("nearestTime", &Geom::Ray::nearestTime) in wrap_ray()
H A Dline.cpp73 .def("nearestTime", &Geom::Line::nearestTime) in wrap_line()
/dports/math/lib2geom/lib2geom-1.1/src/py2geom/
H A Dray.cpp75 .def("nearestTime", &Geom::Ray::nearestTime) in wrap_ray()
79 .def("nearestTime", &Geom::Ray::nearestTime) in wrap_ray()
H A Dline.cpp73 .def("nearestTime", &Geom::Line::nearestTime) in wrap_line()
/dports/math/lib2geom/lib2geom-1.1/src/toys/
H A Dpoint-curve-nearest-time.cpp96 double t = seg.nearestTime(p); in draw()
127 double t = earc.nearestTime(p); in draw()
216 PathTime pt = path.nearestTime(p); in draw()
245 double t = pathv[0][0].nearestTime(p, 0, 1); in draw()
H A Dbound-path.cpp142 t = curve.nearestTime(pos); in mouse_pressed()
170 t = path.nearestTime(pos).asFlatTime(); in mouse_pressed()
195 t = path.nearestTime(pos).asFlatTime(); in mouse_pressed()
H A Dconic-section-toy.cpp425 P = cs.nearestTime (p1.pos); in draw_nearest_time()
468 p1.pos = cs.nearestTime (p1.pos); in draw_bound()
469 p2.pos = cs.nearestTime (p2.pos); in draw_bound()
470 p3.pos = cs.nearestTime (p3.pos); in draw_bound()
543 p1.pos = cs.nearestTime (p1.pos); in draw_tangent()
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/src/toys/
H A Dpoint-curve-nearest-time.cpp96 double t = seg.nearestTime(p); in draw()
127 double t = earc.nearestTime(p); in draw()
216 PathTime pt = path.nearestTime(p); in draw()
245 double t = pathv[0][0].nearestTime(p, 0, 1); in draw()
H A Dbound-path.cpp142 t = curve.nearestTime(pos); in mouse_pressed()
170 t = path.nearestTime(pos).asFlatTime(); in mouse_pressed()
195 t = path.nearestTime(pos).asFlatTime(); in mouse_pressed()
H A Dconic-section-toy.cpp425 P = cs.nearestTime (p1.pos); in draw_nearest_time()
468 p1.pos = cs.nearestTime (p1.pos); in draw_bound()
469 p2.pos = cs.nearestTime (p2.pos); in draw_bound()
470 p3.pos = cs.nearestTime (p3.pos); in draw_bound()
543 p1.pos = cs.nearestTime (p1.pos); in draw_tangent()
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/src/2geom/
H A Dpathvector.cpp242 std::optional<PathVectorTime> PathVector::nearestTime(Point const &p, Coord *dist) const in nearestTime() function in Geom::PathVector
249 PathTime pos = (*this)[i].nearestTime(p, &d); in nearestTime()
269 PathTime pos = (*this)[i].nearestTime(p, &d); in allNearestTimes()
/dports/math/lib2geom/lib2geom-1.1/src/2geom/
H A Dpathvector.cpp242 std::optional<PathVectorTime> PathVector::nearestTime(Point const &p, Coord *dist) const in nearestTime() function in Geom::PathVector
249 PathTime pos = (*this)[i].nearestTime(p, &d); in nearestTime()
269 PathTime pos = (*this)[i].nearestTime(p, &d); in allNearestTimes()
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/src/cython/
H A D_cy_path.pxd91 double nearestTime(Point &, double, double, double *)
92 double nearestTime(Point &, double *)
/dports/math/lib2geom/lib2geom-1.1/src/cython/
H A D_cy_path.pxd91 double nearestTime(Point &, double, double, double *)
92 double nearestTime(Point &, double *)

1234