Home
last modified time | relevance | path

Searched refs:p2y (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/gfx/geometry/
H A Dcubic_bezier.cc24 InitCoefficients(p1x, p1y, p2x, p2y); in CubicBezier()
25 InitGradients(p1x, p1y, p2x, p2y); in CubicBezier()
26 InitRange(p1y, p2y); in CubicBezier()
43 by_ = 3.0 * (p2y - p1y) - cy_; in InitCoefficients()
57 double p2y) { in InitGradients() argument
81 start_gradient_ = p2y / p2x; in InitGradients()
82 else if (!p1y && !p2y) in InitGradients()
88 end_gradient_ = (p2y - 1) / (p2x - 1); in InitGradients()
89 else if (p2y == 1 && p1x < 1) in InitGradients()
91 else if (p2y == 1 && p1y == 1) in InitGradients()
[all …]
H A Dcubic_bezier.h17 CubicBezier(double p1x, double p1y, double p2x, double p2y);
75 void InitCoefficients(double p1x, double p1y, double p2x, double p2y);
76 void InitGradients(double p1x, double p1y, double p2x, double p2y);
77 void InitRange(double p1y, double p2y);
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/gfx/geometry/
H A Dcubic_bezier.cc24 InitCoefficients(p1x, p1y, p2x, p2y); in CubicBezier()
25 InitGradients(p1x, p1y, p2x, p2y); in CubicBezier()
26 InitRange(p1y, p2y); in CubicBezier()
43 by_ = 3.0 * (p2y - p1y) - cy_; in InitCoefficients()
57 double p2y) { in InitGradients() argument
81 start_gradient_ = p2y / p2x; in InitGradients()
82 else if (!p1y && !p2y) in InitGradients()
88 end_gradient_ = (p2y - 1) / (p2x - 1); in InitGradients()
89 else if (p2y == 1 && p1x < 1) in InitGradients()
91 else if (p2y == 1 && p1y == 1) in InitGradients()
[all …]
H A Dcubic_bezier.h17 CubicBezier(double p1x, double p1y, double p2x, double p2y);
75 void InitCoefficients(double p1x, double p1y, double p2x, double p2y);
76 void InitGradients(double p1x, double p1y, double p2x, double p2y);
77 void InitRange(double p1y, double p2y);
/dports/math/p5-Math-Bezier-Convert/Math-Bezier-Convert-0.02/
H A DConvert.pm41 $p11y = $p1y + $sep * ($p2y - $p1y);
43 $p12y = $p2y + $sep * ($p3y - $p2y);
61 $p11y = $p1y + $sep * ($p2y - $p1y);
90 my ($v02x, $v02y) = ($p2x-$p0x, $p2y-$p0y);
92 my ($v32x, $v32y) = ($p2x-$p3x, $p2y-$p3y);
111 ($p1x, $p1y, $p2x, $p2y, $p3x, $p3y) = @p;
133 my $betay = 3*($p2y - $p1y) - $deltay;
185 @p = ($p1x, $p1y, $p2x, $p2y, $p3x, $p3y) = @cp1;
239 my ($p1x, $p1y, $p2x, $p2y);
242 …cp, $p0x+($p1x-$p0x)*2/3, $p0y+($p1y-$p0y)*2/3, $p1x+($p2x-$p1x)/3, $p1y+($p2y-$p1y)/3, $p2x, $p2y;
[all …]
/dports/math/cgal/CGAL-5.3/include/CGAL/predicates/
H A Dpredicates_for_mixed_complex_3.h34 const FT &p2x, const FT &p2y, const FT &p2z, const FT &p2w, in side_of_mixed_cellC3() argument
39 p2x, p2y, p2z, p2w, in side_of_mixed_cellC3()
41 dx = p1x - p2x; dy = p1y - p2y; dz = p1z - p2z; in side_of_mixed_cellC3()
61 tx = (p2y-p1y) * (p3z-p1z) - (p2z-p1z) * (p3y-p1y); in side_of_mixed_cellC3()
63 tz = (p2x-p1x) * (p3y-p1y) - (p2y-p1y) * (p3x-p1x); in side_of_mixed_cellC3()
66 nx = (p2y-p1y) * tz - (p2z-p1z) * ty; in side_of_mixed_cellC3()
68 nz = (p2x-p1x) * ty - (p2y-p1y) * tx; in side_of_mixed_cellC3()
72 p2x, p2y, p2z, p2w, in side_of_mixed_cellC3()
95 nx = (p3y-p1y) * (p2z-p1z) - (p3z-p1z) * (p2y-p1y); in side_of_mixed_cellC3()
97 nz = (p3x-p1x) * (p2y-p1y) - (p3y-p1y) * (p2x-p1x); in side_of_mixed_cellC3()
[all …]
/dports/graphics/gimp-app/gimp-2.10.30/app/core/
H A Dgimplineart.c1388 if (p2x >= 0 && p2x < width && p2y >= 0 && p2y < height) in gimp_lineart_denoise()
1404 if (p2x >= 0 && p2x < width && p2y >= 0 && p2y < height) in gimp_lineart_denoise()
1420 if (p2x >= 0 && p2x < width && p2y >= 0 && p2y < height) in gimp_lineart_denoise()
1754 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1769 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1784 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1799 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1814 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1829 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
1844 p2y >= 0 && p2y < height && in gimp_lineart_curvature_extremums()
[all …]
/dports/cad/pdnmesh/pdnmesh-0.2.2/src/
H A Dpoly.c139 dy2 = p2y - p0y; in ccw()
171 ccw12 = ccw (e1.p1x, e1.p1y, e1.p2x, e1.p2y, e2.p2x, e2.p2y); in intersect()
173 ccw22 = ccw (e2.p1x, e2.p1y, e2.p2x, e2.p2y, e1.p2x, e1.p2y); in intersect()
188 ccw12 = ccw (e1.p1x, e1.p1y, e1.p2x, e1.p2y, e2.p2x, e2.p2y); in clean_intersect()
190 ccw22 = ccw (e2.p1x, e2.p1y, e2.p2x, e2.p2y, e1.p2x, e1.p2y); in clean_intersect()
194 e1.p1x, e1.p1y, e1.p2x, e1.p2y, e2.p1x, e2.p1y, e2.p2x, e2.p2y); in clean_intersect()
245 lv.p2y = My (p,M); in inside_poly()
272 lt.p2y); in inside_poly()
359 lv.p2y = p.y; in inside_poly_point()
386 lt.p2y); in inside_poly_point()
[all …]
/dports/audio/wolf-shaper-lv2/wolf-shaper-0.1.8-33-ge84de58/plugins/wolf-shaper/Structures/src/
H A DGraph.cpp57 const float deltaY = p2y - p1y; in ~Ringbuffer()
76 … result = 1 - (deltaY * std::pow(1 - (input - p1x) / deltaX, exponent) + p1y) + p2y - (1 - p1y); in ~Ringbuffer()
317 return inputSign * p2y;
336 const float deltaY = p2y - p1y;
342 return powerScale(input, tension, 15.0f, p1x, p1y, p2x, p2y, false);
351 return powerScale(input, -tension, 15.0f, middleX, middleY, p2x, p2y, false);
362 return powerScale(input, tension, 15.0f, p1x, p1y, p2x, p2y, false);
384 const float minY = std::min(p1y, p2y);
385 const float maxY = std::max(p1y, p2y);
438 const float p2y = vertices[left].getY();
[all …]
/dports/science/afni/afni-AFNI_21.3.16/src/SUMA/
H A DSUMA_trackball.c98 trackball(float q[4], float p1x, float p1y, float p2x, float p2y) in trackball() argument
105 if (p1x == p2x && p1y == p2y) { in trackball()
114 vset(p2, p2x, p2y, tb_project_to_sphere(TRACKBALLSIZE, p2x, p2y)); in trackball()
135 trackball_Phi(float q[4], float p1x, float p1y, float p2x, float p2y, float phi) in trackball_Phi() argument
141 if (p1x == p2x && p1y == p2y) { in trackball_Phi()
150 vset(p2, p2x, p2y, tb_project_to_sphere(TRACKBALLSIZE, p2x, p2y)); in trackball_Phi()
/dports/graphics/geos/geos-3.9.1/tests/unit/algorithm/
H A DIntersectionTest.cpp46 void checkIntersectionNull(double p1x, double p1y, double p2x, double p2y, in checkIntersectionNull()
49 Coordinate p2(p2x, p2y); in checkIntersectionNull()
56 void checkIntersection(double p1x, double p1y, double p2x, double p2y, in checkIntersection()
60 Coordinate p2(p2x, p2y); in checkIntersection()
/dports/math/jts/jts-jts-1.18.1/modules/core/src/test/java/org/locationtech/jts/algorithm/
H A DIntersectionTest.java52 private void checkIntersection(double p1x, double p1y, double p2x, double p2y, in checkIntersection() argument
56 Coordinate p2 = new Coordinate(p2x, p2y); in checkIntersection()
67 private void checkIntersectionNull(double p1x, double p1y, double p2x, double p2y, in checkIntersectionNull() argument
70 Coordinate p2 = new Coordinate(p2x, p2y); in checkIntersectionNull()
/dports/cad/opencascade/opencascade-7.6.0/tests/lowalgos/2dinter/
H A Dbug2559319 regexp {Intersection point 1 : +([-0-9.+eE]+) +([-0-9.+eE]+)} $info2 full p2x p2y
48 puts "p2x=$p2x p2y=$p2y par2f=$par2f $par2s"
49 set sqd [expr ($p1x-$p2x)*($p1x-$p2x)+($p1y-$p2y)*($p1y-$p2y)]
/dports/graphics/opencv/opencv-4.5.3/modules/calib3d/src/
H A Dippe.cpp519 double p2x, p2y; in homographyFromSquarePoints() local
529 p2y = -pts.at<Vec2f>(1)(1); in homographyFromSquarePoints()
543 p2y = -pts.at<Vec2d>(1)(1); in homographyFromSquarePoints()
562 …nv * (p1x * p2y * p3y - p2x * p1y * p3y - p1x * p2y * p4y + p2x * p1y * p4y - p3x * p1y * p4y + p4… in homographyFromSquarePoints()
563 …p1y * p3y - p3x * p1y * p2y - p1x * p2y * p4y + p4x * p1y * p2y + p1x * p3y * p4y - p4x * p1y * p3… in homographyFromSquarePoints()
564 …th * (p1x * p2y * p3y - p3x * p1y * p2y - p2x * p1y * p4y + p4x * p1y * p2y - p1x * p3y * p4y + p3… in homographyFromSquarePoints()
565 … * (p1x * p3y - p3x * p1y - p1x * p4y - p2x * p3y + p3x * p2y + p4x * p1y + p2x * p4y - p4x * p2y); in homographyFromSquarePoints()
566 …H(2, 1) = detsInv * (p1x * p2y - p2x * p1y - p1x * p3y + p3x * p1y + p2x * p4y - p4x * p2y - p3x *… in homographyFromSquarePoints()
786 double p2x,p2y,p2z; in computeObjextSpaceR3Pts() local
797 p2y = objectPoints.at<Vec3f>(1)[1]; in computeObjextSpaceR3Pts()
[all …]
/dports/graphics/geos/geos-3.9.1/src/algorithm/
H A DCGAlgorithmsDD.cpp61 double p2x, double p2y, in orientationIndex() argument
70 int index = orientationIndexFilter(p1x, p1y, p2x, p2y, qx, qy); in orientationIndex()
77 DD dy1 = DD(p2y) + DD(-p1y); in orientationIndex()
79 DD dy2 = DD(qy) + DD(-p2y); in orientationIndex()
170 DD p2y(p2.y); in intersection() local
172 DD px = p1y - p2y; in intersection()
174 DD pw = (p1x * p2y) - (p2x * p1y); in intersection()
/dports/science/liggghts/LIGGGHTS-PUBLIC-3.8.0-26-g6e873439/lib/hotint/HotInt_V1/ElementsLib/modal_reduction/
H A DCMSElement2D.cpp3086 double p2y = p2.Y(); in ComputeDAijDq() local
3100 dcsphi1(1) = -(-2.0*u2y*p1y+2.0*p1y*u1y+2.0*p2y*u2y-2.0*p2y*p1y+p2y*p2y+u1y*u1y in ComputeDAijDq()
3103 *p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y*u1y+p1y* in ComputeDAijDq()
3107 u1x*u1x+p2y*p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y in ComputeDAijDq()
3109 dcsphi2(1) = (-2.0*u2y*p1y+2.0*p1y*u1y+2.0*p2y*u2y-2.0*p2y*p1y+p2y*p2y+u1y*u1y in ComputeDAijDq()
3112 *p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y*u1y+p1y* in ComputeDAijDq()
3116 u1x*u1x+p2y*p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y in ComputeDAijDq()
3125 u1x*u1x+p2y*p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y in ComputeDAijDq()
3130 *p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y*u1y+p1y* in ComputeDAijDq()
3134 u1x*u1x+p2y*p2y+2.0*p2y*u2y-2.0*p2y*p1y-2.0*p2y*u1y+u2y*u2y-2.0*u2y*p1y-2.0*u2y in ComputeDAijDq()
[all …]
/dports/graphics/libgfx/libgfx-1.1.0/src/
H A Dtrackball.cxx51 void trackball(Quat& q, float p1x, float p1y, float p2x, float p2y) in trackball() argument
53 if (p1x == p2x && p1y == p2y) in trackball()
73 Vec3 p2(p2x,p2y,proj_to_sphere(TRACKBALLSIZE,p2x,p2y)); in trackball()
/dports/science/elmerfem/elmerfem-release-9.0/meshgen2d/src/include/
H A DcoreGeometry.h138 void vertexLocation(double p1x, double p1y, double p2x, double p2y, in vertexLocation() argument
146 b = 2 * (p2y - p1y); in vertexLocation()
148 d = 2 * (p3y - p2y); in vertexLocation()
149 r1 = -(-p2x * p2x + p1x * p1x - p2y * p2y + p1y * p1y); in vertexLocation()
150 r2 = -(-p3x * p3x + p2x * p2x - p3y * p3y + p2y * p2y); in vertexLocation()
/dports/cad/calculix/CalculiX/cgx_2.18/src/
H A Dtrackball.c163 …l( char projTrueFlag, double ballsize, double q[4], double p1x, double p1y, double p2x, double p2y) in trackball() argument
170 if (p1x == p2x && p1y == p2y) { in trackball()
184 vset(p2,p2x,p2y,tb_project_to_sphere(ballsize,p2x,p2y)); in trackball()
189 vset(p2,p2x,p2y,tb_projectHyp_to_sphere(ballsize,p2x,p2y)); in trackball()
/dports/print/ghostscript8-x11/ghostscript-8.71/base/
H A Dvdtrace.c48 static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, doub… in vd_flatten() argument
52 double d2x0 = (p0x - 2 * p1x + p2x), d2y0 = (p0y - 2 * p1y + p2y); in vd_flatten()
53 double d2x1 = (p1x - 2 * p2x + p3x), d2y1 = (p1y - 2 * p2y + p3y); in vd_flatten()
65 double py = bezier_point(p0y, p1y, p2y, p3y, t); in vd_flatten()
95 { double p1x, p1y, p2x, p2y, p3x, p3y; in vd_impl_curveto() local
99 p2x = SX(x2), p2y = SY(y2); in vd_impl_curveto()
102 vd_trace1->curveto(vd_trace1, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
104 vd_flatten(px, py, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
/dports/print/ghostscript9-base/ghostscript-9.06/base/
H A Dvdtrace.c50 static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, doub… in vd_flatten() argument
54 double d2x0 = (p0x - 2 * p1x + p2x), d2y0 = (p0y - 2 * p1y + p2y); in vd_flatten()
55 double d2x1 = (p1x - 2 * p2x + p3x), d2y1 = (p1y - 2 * p2y + p3y); in vd_flatten()
67 double py = bezier_point(p0y, p1y, p2y, p3y, t); in vd_flatten()
97 { double p1x, p1y, p2x, p2y, p3x, p3y; in vd_impl_curveto() local
101 p2x = SX(x2), p2y = SY(y2); in vd_impl_curveto()
104 vd_trace1->curveto(vd_trace1, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
106 vd_flatten(px, py, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
/dports/print/ghostscript8-base/ghostscript-8.71/base/
H A Dvdtrace.c48 static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, doub… in vd_flatten() argument
52 double d2x0 = (p0x - 2 * p1x + p2x), d2y0 = (p0y - 2 * p1y + p2y); in vd_flatten()
53 double d2x1 = (p1x - 2 * p2x + p3x), d2y1 = (p1y - 2 * p2y + p3y); in vd_flatten()
65 double py = bezier_point(p0y, p1y, p2y, p3y, t); in vd_flatten()
95 { double p1x, p1y, p2x, p2y, p3x, p3y; in vd_impl_curveto() local
99 p2x = SX(x2), p2y = SY(y2); in vd_impl_curveto()
102 vd_trace1->curveto(vd_trace1, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
104 vd_flatten(px, py, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
/dports/print/ghostscript9-x11/ghostscript-9.06/base/
H A Dvdtrace.c50 static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, doub… in vd_flatten() argument
54 double d2x0 = (p0x - 2 * p1x + p2x), d2y0 = (p0y - 2 * p1y + p2y); in vd_flatten()
55 double d2x1 = (p1x - 2 * p2x + p3x), d2y1 = (p1y - 2 * p2y + p3y); in vd_flatten()
67 double py = bezier_point(p0y, p1y, p2y, p3y, t); in vd_flatten()
97 { double p1x, p1y, p2x, p2y, p3x, p3y; in vd_impl_curveto() local
101 p2x = SX(x2), p2y = SY(y2); in vd_impl_curveto()
104 vd_trace1->curveto(vd_trace1, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
106 vd_flatten(px, py, p1x, p1y, p2x, p2y, p3x, p3y); in vd_impl_curveto()
/dports/graphics/librsvg2/librsvg-2.40.21/
H A Drsvg-marker.c203 double p2x, p2y; member
300 segments[segment_num].p2y = cur_y; in path_to_segments()
329 segments[segment_num].p2y = path->data[i + 1].point.y; in path_to_segments()
340 && DOUBLE_EQUALS (segments[segment_num].p2y, segments[segment_num].p1y)) { in path_to_segments()
342 segments[segment_num].p2y = segments[segment_num].p3y; in path_to_segments()
348 segments[segment_num].p3y = segments[segment_num].p2y; in path_to_segments()
361 segments[segment_num].p2y = cur_y; in path_to_segments()
399 double p2x, p2y; in is_zero_length_segment() local
410 p2y = segment->p2y; in is_zero_length_segment()
418 return (points_equal (p1x, p1y, p2x, p2y) in is_zero_length_segment()
[all …]
/dports/games/spring/spring_98.0/cont/base/springcontent/LuaIntro/Addons/
H A Dbg_logo.lua149 function CalcNormal(px,py,pz, p1x,p1y,p1z, p2x,p2y,p2z)
154 local pby = p2y - py;
185 local p2x,p2y,p2z = EvalSuperEllipse(theta2 + delta, 0 + delta, power1, power2);
186 local nx,ny,nz = CalcNormal(p1x,p1y,p1z, px,py,pz, p2x,p2y,p2z);
193 local p2x,p2y,p2z = EvalSuperEllipse(theta2 , theta3 + delta, power1, power2);
194 local nx,ny,nz = CalcNormal(p1x,p1y,p1z, px,py,pz, p2x,p2y,p2z);
203 local p2x,p2y,p2z = EvalSuperEllipse(theta1 + delta, 0 + delta, power1, power2);
204 local nx,ny,nz = CalcNormal(p1x,p1y,p1z, px,py,pz, p2x,p2y,p2z);
211 local p2x,p2y,p2z = EvalSuperEllipse(theta1 , theta3 + delta, power1, power2);
212 local nx,ny,nz = CalcNormal(p1x,p1y,p1z, px,py,pz, p2x,p2y,p2z);

12345678910>>...19