/dports/math/p5-Math-Bezier-Convert/Math-Bezier-Convert-0.02/ |
H A D | Convert.pm | 40 $p11x = $p1x + $sep * ($p2x - $p1x); 42 $p12x = $p2x + $sep * ($p3x - $p2x); 60 $p11x = $p1x + $sep * ($p2x - $p1x); 90 my ($v02x, $v02y) = ($p2x-$p0x, $p2y-$p0y); 92 my ($v32x, $v32y) = ($p2x-$p3x, $p2y-$p3y); 111 ($p1x, $p1y, $p2x, $p2y, $p3x, $p3y) = @p; 132 my $betax = 3*($p2x - $p1x) - $deltax; 185 @p = ($p1x, $p1y, $p2x, $p2y, $p3x, $p3y) = @cp1; 239 my ($p1x, $p1y, $p2x, $p2y); 242 …push @cp, $p0x+($p1x-$p0x)*2/3, $p0y+($p1y-$p0y)*2/3, $p1x+($p2x-$p1x)/3, $p1y+($p2y-$p1y)/3, $p2x… [all …]
|
/dports/math/cgal/CGAL-5.3/include/CGAL/predicates/ |
H A D | predicates_for_mixed_complex_3.h | 34 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() 62 ty = (p2z-p1z) * (p3x-p1x) - (p2x-p1x) * (p3z-p1z); in side_of_mixed_cellC3() 63 tz = (p2x-p1x) * (p3y-p1y) - (p2y-p1y) * (p3x-p1x); in side_of_mixed_cellC3() 67 ny = (p2z-p1z) * tx - (p2x-p1x) * tz; 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() 96 ny = (p3z-p1z) * (p2x-p1x) - (p3x-p1x) * (p2z-p1z); in side_of_mixed_cellC3() 97 nz = (p3x-p1x) * (p2y-p1y) - (p3y-p1y) * (p2x-p1x); in side_of_mixed_cellC3() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/gfx/geometry/ |
H A D | cubic_bezier.cc | 23 CubicBezier::CubicBezier(double p1x, double p1y, double p2x, double p2y) { in CubicBezier() argument 24 InitCoefficients(p1x, p1y, p2x, p2y); in CubicBezier() 25 InitGradients(p1x, p1y, p2x, p2y); in CubicBezier() 34 double p2x, in InitCoefficients() argument 39 bx_ = 3.0 * (p2x - p1x) - cx_; in InitCoefficients() 50 monotonically_increasing_ = p1x >= 0 && p1x <= 1 && p2x >= 0 && p2x <= 1; in InitCoefficients() 56 double p2x, in InitGradients() argument 80 else if (!p1y && p2x > 0) in InitGradients() 81 start_gradient_ = p2y / p2x; in InitGradients() 87 if (p2x < 1) in InitGradients() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/gfx/geometry/ |
H A D | cubic_bezier.cc | 23 CubicBezier::CubicBezier(double p1x, double p1y, double p2x, double p2y) { in CubicBezier() argument 24 InitCoefficients(p1x, p1y, p2x, p2y); in CubicBezier() 25 InitGradients(p1x, p1y, p2x, p2y); in CubicBezier() 34 double p2x, in InitCoefficients() argument 39 bx_ = 3.0 * (p2x - p1x) - cx_; in InitCoefficients() 50 monotonically_increasing_ = p1x >= 0 && p1x <= 1 && p2x >= 0 && p2x <= 1; in InitCoefficients() 56 double p2x, in InitGradients() argument 80 else if (!p1y && p2x > 0) in InitGradients() 81 start_gradient_ = p2y / p2x; in InitGradients() 87 if (p2x < 1) in InitGradients() [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/app/core/ |
H A D | gimplineart.c | 1388 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() 1753 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1768 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1783 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1798 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1813 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1828 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() 1843 if (p2x >= 0 && p2x < width && in gimp_lineart_curvature_extremums() [all …]
|
/dports/cad/pdnmesh/pdnmesh-0.2.2/src/ |
H A D | poly.c | 138 dx2 = p2x - p0x; 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() 244 lv.p2x = Mx (p,M); in inside_poly() 271 lp.p1x, lp.p1y, lp.p2x, lp.p2y, lt.p1x, lt.p1y, lt.p2x, in inside_poly() 358 lv.p2x = p.x; in inside_poly_point() 385 lp.p1x, lp.p1y, lp.p2x, lp.p2y, lt.p1x, lt.p1y, lt.p2x, in inside_poly_point() [all …]
|
/dports/lang/cim/cim-3.37/lib/ |
H A D | copytextarrtoc.c | 38 char **p2x; local 41 p2x = (char **) xmalloc ((unsigned) (size = p->h.size - sizeofhode)); 45 p2x[i] = __rcopytexttoc (p1x[i]); 48 p2x[i] = &p1x[i]->obj->string[p1x[i]->start - 1]; 49 return (p2x);
|
H A D | copyarrtoc.c | 36 *p2x; local 39 p2x = (char *) xmalloc ((unsigned) (size = p->h.size - sizeofhode)); 41 p2x[i] = p1x[i]; 42 return (p2x);
|
H A D | letext.c | 33 *p2x; local 40 p2x = (unsigned char *) &(t2x->obj->string[t2x->start - 1]); 46 if (*p1x > *p2x) 48 if (*p1x++ < *p2x++)
|
H A D | lttext.c | 33 *p2x; local 41 p2x = (unsigned char *) &(t2x->obj->string[t2x->start - 1]); 46 if (*p1x < *p2x) 48 if (*p1x++ > *p2x++)
|
H A D | eqtext.c | 31 *p2x; local 40 for (p2x = (char *) &(t2x->obj->string[t2x->start - 1]); i < (long) t2x->length; i++) 41 if (!(*p1x++ == *p2x++))
|
H A D | textvalassign.c | 32 *p2x; local 46 for (p2x = (char *) &(t2x->obj->string[t2x->start - 1]); i < (long) t2x->length; i++) 47 *p1x++ = *p2x++;
|
/dports/security/aespipe/aespipe-v2.4e/ |
H A D | md5-x86.S | 46 #define REPEAT1(p1w,p2x,p3z,p4c,p5s,p6Nin,p7Nz,p8Ny) \ argument 48 and p2x,%eax ;\ 56 add p2x,p1w 85 xor p2x,%eax ;\ 94 add p2x,p1w 124 #define REPEAT3(p1w,p2x,p3c,p4s,p5Nin,p6Ny,p7Nz) \ argument 126 xor p2x,%eax ;\ 133 add p2x,p1w 161 #define REPEAT4(p1w,p2x,p3y,p4c,p5s,p6Nin,p7Nz) \ argument 163 or p2x,%eax ;\ [all …]
|
H A D | md5-amd64.S | 45 #define REPEAT1(p1w,p2x,p3z,p4c,p5s,p6Nin,p7Nz,p8Ny) \ argument 47 andl p2x,%eax ;\ 55 addl p2x,p1w 84 xorl p2x,%eax ;\ 93 addl p2x,p1w 123 #define REPEAT3(p1w,p2x,p3c,p4s,p5Nin,p6Ny,p7Nz) \ argument 125 xorl p2x,%eax ;\ 132 addl p2x,p1w 160 #define REPEAT4(p1w,p2x,p3y,p4c,p5s,p6Nin,p7Nz) \ argument 162 orl p2x,%eax ;\ [all …]
|
/dports/science/afni/afni-AFNI_21.3.16/src/SUMA/ |
H A D | SUMA_trackball.c | 98 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/math/lidia/lidia-2.3.0+latte-patches-2014-10-04/src/base/polynomial/ |
H A D | bigcomplex_polynomial.cc | 224 bigcomplex u, u1, dx, x(start), y, px(p[i]), p1x(0.0), p2x(0.0); in root() local 230 multiply(p2x, x, p2x); in root() 231 add(p2x, p2x, p1x); in root() 248 multiply(tmp, tmp, hypot(p2x)); in root() 282 p2x.assign_zero(); in root() 284 multiply(p2x, x, p2x); in root() 285 add(p2x, p2x, p1x); in root() 292 multiply(tmp, hypot(u), hypot(p2x)); in root() 311 p2x.assign_zero(); in root() 313 multiply(p2x, x, p2x); in root() [all …]
|
/dports/graphics/geos/geos-3.9.1/tests/unit/algorithm/ |
H A D | IntersectionTest.cpp | 46 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 D | IntersectionTest.java | 52 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 D | bug25593 | 19 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 D | ippe.cpp | 519 double p2x, p2y; in homographyFromSquarePoints() local 528 p2x = -pts.at<Vec2f>(1)(0); in homographyFromSquarePoints() 542 p2x = -pts.at<Vec2d>(1)(0); in homographyFromSquarePoints() 559 …* (p1x * p3x * p2y - p2x * p3x * p1y - p1x * p4x * p2y + p2x * p4x * p1y - p1x * p3x * p4y + p1x *… in homographyFromSquarePoints() 560 …, 1) = detsInv * (p1x * p2x * p3y - p1x * p3x * p2y - p1x * p2x * p4y + p2x * p4x * p1y + p1x * p3… in homographyFromSquarePoints() 561 …v * halfLength * (p1x * p2x * p3y - p2x * p3x * p1y - p1x * p2x * p4y + p1x * p4x * p2y - p1x * p4… in homographyFromSquarePoints() 565 …(2, 0) = -detsInv * (p1x * p3y - p3x * p1y - p1x * p4y - p2x * p3y + p3x * p2y + p4x * p1y + p2x *… 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 796 p2x = objectPoints.at<Vec3f>(1)[0]; in computeObjextSpaceR3Pts() [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/libzrtp/src/ |
H A D | zrtp_crypto_ec.c | 83 struct BigNum *p2x, struct BigNum *p2y, struct BigNum *mod) in zrtp_ecAdd() argument 93 bnCopy (rsltx, p2x); bnCopy (rslty, p2y); in zrtp_ecAdd() 97 if (bnCmp (p2x, &bnzero) == 0 && bnCmp (p2y, &bnzero) == 0) { in zrtp_ecAdd() 104 if (bnCmp (p1x, p2x) == 0) { in zrtp_ecAdd() 108 bnAddMod_ (&tsum, p2x, mod); in zrtp_ecAdd() 124 if (bnCmp (p1x, p2x) == 0 && bnCmp (p1y, p2y) == 0) { in zrtp_ecAdd() 133 bnCopy (&t1, p2x); in zrtp_ecAdd() 143 bnSubMod_ (&trsltx, p2x, mod); in zrtp_ecAdd()
|
/dports/graphics/geos/geos-3.9.1/src/algorithm/ |
H A D | CGAlgorithmsDD.cpp | 61 double p2x, double p2y, in orientationIndex() argument 70 int index = orientationIndexFilter(p1x, p1y, p2x, p2y, qx, qy); in orientationIndex() 76 DD dx1 = DD(p2x) + DD(-p1x); in orientationIndex() 78 DD dx2 = DD(qx) + DD(-p2x); in orientationIndex() 169 DD p2x(p2.x); in intersection() local 173 DD py = p2x - p1x; 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 D | CMSElement2D.cpp | 3085 double p2x = p2.X(); in ComputeDAijDq() local 3101 -2.0*u2y*u1y-2.0*p2y*u1y+u2y*u2y+p1y*p1y)/sqrt(pow(p2x*p2x+2.0*p2x*u2x-2.0*p2x* in ComputeDAijDq() 3105 dcsphi1(2) = (-p2y-u2y+p1y+u1y)*(-p2x-u2x+p1x+u1x)/sqrt(pow(p2x*p2x+2.0*p2x*u2x in ComputeDAijDq() 3110 -2.0*u2y*u1y-2.0*p2y*u1y+u2y*u2y+p1y*p1y)/sqrt(pow(p2x*p2x+2.0*p2x*u2x-2.0*p2x* in ComputeDAijDq() 3114 dcsphi2(2) = -(-p2y-u2y+p1y+u1y)*(-p2x-u2x+p1x+u1x)/sqrt(pow(p2x*p2x+2.0*p2x*u2x in ComputeDAijDq() 3123 dcsphi1(1) = (-p2y-u2y+p1y+u1y)*(-p2x-u2x+p1x+u1x)/sqrt(pow(p2x*p2x+2.0*p2x*u2x in ComputeDAijDq() 3127 dcsphi1(2) = -(2.0*p2x*u2x+p1x*p1x+2.0*p1x*u1x+p2x*p2x-2.0*u2x*u1x-2.0*p2x*p1x in ComputeDAijDq() 3128 -2.0*p2x*u1x+u2x*u2x-2.0*u2x*p1x+u1x*u1x)/sqrt(pow(p2x*p2x+2.0*p2x*u2x-2.0*p2x* in ComputeDAijDq() 3132 dcsphi2(1) = -(-p2y-u2y+p1y+u1y)*(-p2x-u2x+p1x+u1x)/sqrt(pow(p2x*p2x+2.0*p2x*u2x in ComputeDAijDq() 3136 dcsphi2(2) = (2.0*p2x*u2x+p1x*p1x+2.0*p1x*u1x+p2x*p2x-2.0*u2x*u1x-2.0*p2x*p1x-2.0 in ComputeDAijDq() [all …]
|
/dports/graphics/libgfx/libgfx-1.1.0/src/ |
H A D | trackball.cxx | 51 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 D | coreGeometry.h | 138 void vertexLocation(double p1x, double p1y, double p2x, double p2y, in vertexLocation() argument 145 a = 2 * (p2x - p1x); in vertexLocation() 147 c = 2 * (p3x - p2x); 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()
|