/dports/graphics/lua-gd/lua-gd-2.0.33r2/demos/ |
H A D | clock.lua | 15 local cxy = size/2 19 im:arc(cxy, cxy, size, size, 0, 360, black) 31 cxy + gsize * cxy * math.sin(rang), 32 size - (cxy + gsize * cxy * math.cos(rang)), 33 cxy + cxy * 0.9 * math.sin(rang), 34 size - (cxy + cxy * 0.9 * math.cos(rang)), 40 im:line(cxy, cxy, 47 im:line(cxy, cxy, 48 cxy + 0.25 * size * math.sin(rang), 49 size - (cxy + 0.25 * size * math.cos(rang)), [all …]
|
H A D | lualogo.lua | 31 local cxy = nsize/2.0 34 im:filledArc(cxy, cxy, ediam, ediam, 0, 360, blue, gd.ARC) 39 im:arc(cxy, cxy, odiam, odiam, i, i+5, gray) 44 local mcx = cxy + math.sin(math.rad(mang)) * emdist 45 local mcy = cxy - math.cos(math.rad(mang)) * emdist 49 local mscx = cxy + math.sin(math.rad(mang)) * esdist 50 local mscy = cxy - math.cos(math.rad(mang)) * esdist
|
/dports/cad/gmsh/gmsh-4.9.2-source/contrib/Netgen/libsrc/linalg/ |
H A D | polynomial.cpp | 64 cxy = acxy; in QuadraticPolynomial2V() 76 cxy = 2 * lp.cx * lp.cy; in Square() 87 cxy += lam * qp2.cxy; in Add() 124 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitSquare() 130 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitSquare() 131 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitSquare() 142 QuadraticPolynomial1V e3(c+cy+cyy, cx+cxy, cxx); in MaxUnitSquare() 169 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitTriangle() 175 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitTriangle() 176 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitTriangle() [all …]
|
/dports/cad/netgen/netgen-6.2.2105/libsrc/linalg/ |
H A D | polynomial.cpp | 64 cxy = acxy; in QuadraticPolynomial2V() 76 cxy = 2 * lp.cx * lp.cy; in Square() 87 cxy += lam * qp2.cxy; in Add() 124 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitSquare() 130 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitSquare() 131 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitSquare() 142 QuadraticPolynomial1V e3(c+cy+cyy, cx+cxy, cxx); in MaxUnitSquare() 169 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitTriangle() 175 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitTriangle() 176 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitTriangle() [all …]
|
/dports/science/elmerfem/elmerfem-release-9.0/ElmerGUI/netgen/libsrc/linalg/ |
H A D | polynomial.cpp | 64 cxy = acxy; in QuadraticPolynomial2V() 76 cxy = 2 * lp.cx * lp.cy; in Square() 87 cxy += lam * qp2.cxy; in Add() 124 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitSquare() 130 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitSquare() 131 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitSquare() 142 QuadraticPolynomial1V e3(c+cy+cyy, cx+cxy, cxx); in MaxUnitSquare() 187 det = 4 * cxx * cyy - cxy * cxy; in MaxUnitTriangle() 193 x0 = (-2 * cyy * cx + cxy * cy) / det; in MaxUnitTriangle() 194 y0 = (cxy * cx -2 * cxx * cy) / det; in MaxUnitTriangle() [all …]
|
/dports/x11-clocks/wlclock/wlclock-v1.0.1/src/ |
H A D | render.c | 147 double cxy = scale * size / 2; in draw_clock_hands() local 170 cairo_move_to(cairo, cxy + mr * cos(phi_min), cxy + mr * sin(phi_min)); in draw_clock_hands() 175 cairo_line_to(cairo, cxy + mr * cos(phi_min), cxy + mr * sin(phi_min)); in draw_clock_hands() 178 cairo_move_to(cairo, cxy + hr * cos(phi_h), cxy + hr * sin(phi_h)); in draw_clock_hands() 180 cxy + ir * sin(phi_h + 2.0 / 3.0 * PI)); in draw_clock_hands() 182 cxy + ir * sin(phi_h + 4.0 / 3.0 * PI)); in draw_clock_hands() 183 cairo_line_to(cairo, cxy + hr * cos(phi_h), cxy + hr * sin(phi_h)); in draw_clock_hands() 191 cairo_move_to(cairo, cxy + mr * cos(phi_min), cxy + mr * sin(phi_min)); in draw_clock_hands() 192 cairo_line_to(cairo, cxy + ir * cos(phi_min + PI), cxy + ir * sin(phi_min + PI)); in draw_clock_hands() 195 cairo_move_to(cairo, cxy + hr * cos(phi_h), cxy + hr * sin(phi_h)); in draw_clock_hands() [all …]
|
/dports/math/grace/grace-5.1.25/T1lib/t1lib/ |
H A D | t1trans.c | 335 matrix->cxy=0.0; in T1_RotateMatrix() 344 matrix->cxy=sin((double)angle) * tmat.cxx + cos((double)angle) * tmat.cxy; in T1_RotateMatrix() 366 matrix->cxy=0.0; in T1_MirrorHMatrix() 391 matrix->cxy=0.0; in T1_MirrorVMatrix() 394 matrix->cxy *=-1.0; in T1_MirrorVMatrix() 417 matrix->cxy=0.0; in T1_ShearHMatrix() 443 matrix->cxy=0.0; in T1_ShearVMatrix() 469 matrix->cxy=0.0; in T1_ExtendHMatrix() 495 matrix->cxy=0.0; in T1_ExtendVMatrix() 524 matrix->cxy=0.0; in T1_TransformMatrix() [all …]
|
/dports/devel/t1lib/t1lib-5.1.2/lib/t1lib/ |
H A D | t1trans.c | 336 matrix->cxy=0.0; in T1_RotateMatrix() 345 matrix->cxy=sin((double)angle) * tmat.cxx + cos((double)angle) * tmat.cxy; in T1_RotateMatrix() 367 matrix->cxy=0.0; in T1_MirrorHMatrix() 392 matrix->cxy=0.0; in T1_MirrorVMatrix() 395 matrix->cxy *=-1.0; in T1_MirrorVMatrix() 418 matrix->cxy=0.0; in T1_ShearHMatrix() 444 matrix->cxy=0.0; in T1_ShearVMatrix() 470 matrix->cxy=0.0; in T1_ExtendHMatrix() 496 matrix->cxy=0.0; in T1_ExtendVMatrix() 525 matrix->cxy=0.0; in T1_TransformMatrix() [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/signal_processing/src/fortran/ |
H A D | tscccf.f | 1 subroutine tscccf(x,y,n,cxy,xymean,lag,ierr) argument 27 double precision x,y,cxy,xymean,eyy,f,exx local 28 dimension x(*),y(*),cxy(*),xymean(2) 34 call dset(lag,0.0d+0,cxy,1) 49 cxy(m) = cxy(m)+(x(j)-exx)*(y(j+m-1)-eyy) 51 cxy(m) = cxy(m)*f
|
/dports/x11/xvt/xvt-3.0.1/src/ |
H A D | xpm.c | 259 cxy = *xy; in xvt_pixmap_incr() 265 cxy = (cxy * (widthheight - cwh)) / 100; /* beware! order */ in xvt_pixmap_incr() 266 cwh += cxy; in xvt_pixmap_incr() 268 cxy = 0; in xvt_pixmap_incr() 273 cxy = 0; in xvt_pixmap_incr() 285 cxy = 0; in xvt_pixmap_incr() 286 else if (pos < cxy) in xvt_pixmap_incr() 287 cxy = pos; in xvt_pixmap_incr() 288 cwh += cxy; in xvt_pixmap_incr() 300 cxy = 0; in xvt_pixmap_incr() [all …]
|
/dports/x11-clocks/rclock/rxvt-2.7.10/src/ |
H A D | xpm.c | 259 cxy = *xy; in rxvt_pixmap_incr() 265 cxy = (cxy * (widthheight - cwh)) / 100; /* beware! order */ in rxvt_pixmap_incr() 266 cwh += cxy; in rxvt_pixmap_incr() 268 cxy = 0; in rxvt_pixmap_incr() 273 cxy = 0; in rxvt_pixmap_incr() 285 cxy = 0; in rxvt_pixmap_incr() 286 else if (pos < cxy) in rxvt_pixmap_incr() 287 cxy = pos; in rxvt_pixmap_incr() 288 cwh += cxy; in rxvt_pixmap_incr() 300 cxy = 0; in rxvt_pixmap_incr() [all …]
|
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/jnisrc/dcraw/ |
H A D | dcrawUtils.cpp | 108 int cdh = abs(chl + chr - 2 * cxy); in DCRaw_METHOD() 109 int cdv = abs(cvu + cvd - 2 * cxy); in DCRaw_METHOD() 118 if (sample < 4 * cxy && cxy < 4 * sample) in DCRaw_METHOD() 122 if (sample < 4 * cxy && cxy < 4 * sample) in DCRaw_METHOD() 126 if (sample < 4 * cxy && cxy < 4 * sample) in DCRaw_METHOD() 135 chl = cxy; in DCRaw_METHOD() 136 cxy = chr; in DCRaw_METHOD() 173 if (xy < 4 * cxy && cxy < 4 * xy) { in DCRaw_METHOD() 179 int cdh = cxy - (chl + chr)/2; in DCRaw_METHOD() 228 chl = cxy; in DCRaw_METHOD() [all …]
|
/dports/science/gromacs/gromacs-2021.4/src/gromacs/nbnxm/cuda/ |
H A D | nbnxm_buffer_ops_kernels.cuh | 79 int cxy = blockIdx.y; in nbnxn_gpu_x_to_nbat_x_kernel() local 81 if (cxy < numColumns) in nbnxn_gpu_x_to_nbat_x_kernel() 84 const int numAtoms = gm_numAtoms[cxy]; in nbnxn_gpu_x_to_nbat_x_kernel() 85 const int offset = (cellOffset + gm_cellIndex[cxy]) * numAtomsPerCell; in nbnxn_gpu_x_to_nbat_x_kernel() 90 numAtomsRounded = (gm_cellIndex[cxy + 1] - gm_cellIndex[cxy]) * numAtomsPerCell; in nbnxn_gpu_x_to_nbat_x_kernel()
|
/dports/cad/gmsh/gmsh-4.9.2-source/contrib/Netgen/libsrc/csg/ |
H A D | curve2d.cpp | 34 cxx = cyy = cxy = cx = cy = c = 0; in QuadraticCurve2d() 39 ist >> cxx >> cyy >> cxy >> cx >> cy >> c; in Read() 53 f = cxx * x * x + cyy * y * y + cxy * x * y + cx * x + cy * y + c; in Project() 54 gradx = 2 * cxx * x + cxy * y + cx; in Project() 55 grady = 2 * cyy * y + cxy * x + cy; in Project() 74 n(0) = 2 * cxx * p(0) + cxy * p(1) + cx; in NormalVector() 75 n(1) = 2 * cyy * p(1) + cxy * p(0) + cy; in NormalVector()
|
/dports/cad/netgen/netgen-6.2.2105/libsrc/csg/ |
H A D | curve2d.cpp | 34 cxx = cyy = cxy = cx = cy = c = 0; in QuadraticCurve2d() 39 ist >> cxx >> cyy >> cxy >> cx >> cy >> c; in Read() 53 f = cxx * x * x + cyy * y * y + cxy * x * y + cx * x + cy * y + c; in Project() 54 gradx = 2 * cxx * x + cxy * y + cx; in Project() 55 grady = 2 * cyy * y + cxy * x + cy; in Project() 74 n(0) = 2 * cxx * p(0) + cxy * p(1) + cx; in NormalVector() 75 n(1) = 2 * cyy * p(1) + cxy * p(0) + cy; in NormalVector()
|
/dports/science/elmerfem/elmerfem-release-9.0/ElmerGUI/netgen/libsrc/csg/ |
H A D | curve2d.cpp | 34 cxx = cyy = cxy = cx = cy = c = 0; in QuadraticCurve2d() 39 ist >> cxx >> cyy >> cxy >> cx >> cy >> c; in Read() 53 f = cxx * x * x + cyy * y * y + cxy * x * y + cx * x + cy * y + c; in Project() 54 gradx = 2 * cxx * x + cxy * y + cx; in Project() 55 grady = 2 * cyy * y + cxy * x + cy; in Project() 74 n(0) = 2 * cxx * p(0) + cxy * p(1) + cx; in NormalVector() 75 n(1) = 2 * cyy * p(1) + cxy * p(0) + cy; in NormalVector()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bseg/sdet/ |
H A D | sdet_contour.cxx | 1083 int x = int((*cxy)[k].x()), y = int((*cxy)[k].y()); in BreakChain() 1572 edgeMap->put( int((*cxy)[k].x()), int((*cxy)[k].y()), merge); in MergeEndPtTouchingEndPt() 1573 if (edgeMap->get( int((*cxy)[0].x()), int((*cxy)[0].y()))) in MergeEndPtTouchingEndPt() 1574 edgeMap->put( int((*cxy)[0].x()), int((*cxy)[0].y()), merge); in MergeEndPtTouchingEndPt() 1688 int x = int((*cxy)[i].x()), y = int((*cxy)[i].y()); in MergeEndPtTouchingJunction() 1764 int x = int((*cxy)[0].x()), y = int((*cxy)[0].y()); in FindJunctions() 1771 v1 = new vtol_vertex_2d((*cxy)[0].x(), (*cxy)[0].y()); in FindJunctions() 1784 x = int((*cxy)[last].x()), y = int((*cxy)[last].y()); in FindJunctions() 1993 new vtol_vertex_2d(((*cxy)[0].x()+(*cxy)[last].x())/2, in FindJunctions() 1994 ((*cxy)[0].y()+(*cxy)[last].y())/2); in FindJunctions() [all …]
|
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/elements/ |
H A D | CLST.cpp | 55 float cxy = 0; in update() local 79 cxy = 0.05; in update() 81 cxy = 0.015; in update() 83 cxy = 0.01; in update() 85 cxy = 0.005; in update() 86 parts[i].vx += cxy*rx; in update() 87 …parts[i].vy += cxy*ry;//These two can be set not to calculate over 350 later. They do virtually no… in update()
|
/dports/cad/jspice3/jspice3-2.5/src/lib/analysis/ |
H A D | distfns.c | 29 S2v2F1(cxy, r1h1x, i1h1x, r1h1y, i1h1y) in S2v2F1() argument 31 double cxy, r1h1x, i1h1x, r1h1y, i1h1y; in S2v2F1() 38 S2i2F1(cxy, r1h1x, i1h1x, r1h1y, i1h1y) in S2i2F1() argument 40 double cxy, r1h1x, i1h1x, r1h1y, i1h1y; in S2i2F1() 49 double cxy, r1h1x, i1h1x, r1h1y, i1h1y; in S2v3F1() 95 return ( cxy * ( 113 return ( cxy * ( 188 double cxx,cyy,czz,cxy,cyz,cxz; in DFn2F1() 207 double cxx,cyy,czz,cxy,cyz,cxz; in DFi2F1() 299 double cxx,cyy,czz,cxy,cyz,cxz; in DFnF12() [all …]
|
/dports/astro/sextractor/sextractor-2.5.0/src/ |
H A D | photom.c | 250 cxy = obj->cxy; in computepetroflux() 251 dxlim = cx2 - cxy*cxy/(4.0*cy2); in computepetroflux() 253 dylim = cy2 - cxy*cxy/(4.0*cx2); in computepetroflux() 367 cxy = obj->cxy; in computepetroflux() 368 dxlim = cx2 - cxy*cxy/(4.0*cy2); in computepetroflux() 370 dylim = cy2 - cxy*cxy/(4.0*cx2); in computepetroflux() 549 cxy = obj->cxy; in computeautoflux() 550 dxlim = cx2 - cxy*cxy/(4.0*cy2); in computeautoflux() 552 dylim = cy2 - cxy*cxy/(4.0*cx2); in computeautoflux() 638 cxy = obj->cxy; in computeautoflux() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/gel/gevd/ |
H A D | gevd_contour.cxx | 724 jx = int((*cxy)[index].x()), jy = int((*cxy)[index].y()); in LoopChain() 968 edgeMap.put( int((*cxy)[k].x()), int((*cxy)[k].y()), merge); in MergeEndPtTouchingEndPt() 969 if (edgeMap.get( int((*cxy)[0].x()), int((*cxy)[0].y()))) in MergeEndPtTouchingEndPt() 970 edgeMap.put( int((*cxy)[0].x()), int((*cxy)[0].y()), merge); in MergeEndPtTouchingEndPt() 971 if (edgeMap.get( int((*cxy)[last].x()), int((*cxy)[last].y()))) in MergeEndPtTouchingEndPt() 972 edgeMap.put( int((*cxy)[last].x()), int((*cxy)[last].y()), merge); in MergeEndPtTouchingEndPt() 1043 std::fabs((*cxy)[0].y()-(*cxy)[last].y()) > connect_fuzz) in FindJunctions() 1045 int x = int((*cxy)[0].x()), y = int((*cxy)[0].y()); in FindJunctions() 1060 x = int((*cxy)[last].x()), y = int((*cxy)[last].y()); in FindJunctions() 1207 …vtol_vertex_2d_sptr v = new vtol_vertex_2d(((*cxy)[0].x()+(*cxy)[last].x())/2, ((*cxy)[0].y()+(*c… in FindJunctions() [all …]
|
/dports/astro/kstars/kstars-3.5.6/kstars/fitsviewer/sep/ |
H A D | aperture.c | 47 int sep_ellipse_axes(double cxx, double cyy, double cxy, in sep_ellipse_axes() argument 54 t = sqrt(q*q + cxy*cxy); in sep_ellipse_axes() 57 if ((cxx*cyy - cxy*cxy/4. <= 0.) || (p <= 0.)) in sep_ellipse_axes() 64 *theta = (cxy == 0.) ? 0. : (q == 0. ? 0. : atan(cxy/q))/2.; in sep_ellipse_axes() 83 *cxy = 2.*costheta*sintheta * (1./(a*a) - 1./(b*b)); in sep_ellipse_coeffs() 132 dxlim = cxx - cxy*cxy/(4.0*cyy); in boxextent_ellipse() 134 dylim = cyy - cxy*cxy/(4.0*cxx); in boxextent_ellipse() 211 #define APER_RPIX2 cxx*dx*dx + cyy*dy*dy + cxy*dx*dy 284 sep_ellipse_coeffs(a, b, theta, &cxx, &cyy, &cxy) 290 #define APER_RPIX2 cxx*dx*dx + cyy*dy*dy + cxy*dx*dy [all …]
|
/dports/x11/mrxvt-devel/mrxvt-0.5.4/src/ |
H A D | pixmap.c | 291 cxy = *xy; in rxvt_pixmap_incr() 297 cxy = (cxy * (widthheight - cwh)) / 100; /* beware! order */ in rxvt_pixmap_incr() 298 cwh += cxy; in rxvt_pixmap_incr() 300 cxy = 0; in rxvt_pixmap_incr() 305 cxy = 0; in rxvt_pixmap_incr() 317 cxy = 0; in rxvt_pixmap_incr() 318 else if (pos < cxy) in rxvt_pixmap_incr() 319 cxy = pos; in rxvt_pixmap_incr() 320 cwh += cxy; in rxvt_pixmap_incr() 332 cxy = 0; in rxvt_pixmap_incr() [all …]
|
/dports/science/cantera/cantera-2.5.1-611-gc4d6ecc15/ext/sundials/examples/kinsol/serial/ |
H A D | kinFoodWeb_kry.c | 322 cxy = IJ_Vptr(cc,jx,jy); in func() 327 WebRate(xx, yy, cxy, rxy, user_data); in func() 332 dcyli = *(cxy+is) - *(cxy - idyl + is) ; in func() 333 dcyui = *(cxy + idyu + is) - *(cxy+is); in func() 336 dcxli = *(cxy+is) - *(cxy - idxl + is); in func() 337 dcxri = *(cxy + idxr +is) - *(cxy+is); in func() 382 cxy = IJ_Vptr(cc,jx,jy); in PrecSetupBD() 394 WebRate(xx, yy, cxy, perturb_rates, data); in PrecSetupBD() 397 cxy[j] = csave; in PrecSetupBD() 465 ratesxy[i] = DotProd(NUM_SPECIES, cxy, acoef[i]); in WebRate() [all …]
|
/dports/math/sundials/sundials-5.7.0/examples/kinsol/serial/ |
H A D | kinFoodWeb_kry.c | 332 cxy = IJ_Vptr(cc,jx,jy); in func() 337 WebRate(xx, yy, cxy, rxy, user_data); in func() 342 dcyli = *(cxy+is) - *(cxy - idyl + is) ; in func() 343 dcyui = *(cxy + idyu + is) - *(cxy+is); in func() 346 dcxli = *(cxy+is) - *(cxy - idxl + is); in func() 347 dcxri = *(cxy + idxr +is) - *(cxy+is); in func() 392 cxy = IJ_Vptr(cc,jx,jy); in PrecSetupBD() 404 WebRate(xx, yy, cxy, perturb_rates, data); in PrecSetupBD() 407 cxy[j] = csave; in PrecSetupBD() 475 ratesxy[i] = DotProd(NUM_SPECIES, cxy, acoef[i]); in WebRate() [all …]
|