Home
last modified time | relevance | path

Searched refs:xdif (Results 1 – 25 of 64) sorted by relevance

123

/dports/japanese/im-ja/im-ja-1.5/src/kanjipad/
H A Dutil.c70 Long Angle32(Long xdif, Long ydif) { in Angle32() argument
74 if ((xneg = (xdif < 0))) in Angle32()
75 xdif = -xdif; in Angle32()
78 if ((xyflip = (ydif < xdif))) { in Angle32()
79 xtmp = xdif; xdif = ydif; ydif = xtmp; in Angle32()
82 if (xdif == 0) { in Angle32()
96 islope = (100 * xdif) / ydif; in Angle32()
/dports/science/jmol/jmol-14.32.7/src/org/jmol/g3d/
H A DPrecisionRenderer.java67 float xdif = (xb - xa); in setRastABFloat() local
68 if (zdif == 0 || xdif == 0) { in setRastABFloat()
74 a = zdif / xdif; in setRastABFloat()
77 a = xdif * za * (zb / zdif); in setRastABFloat()
84 float xdif = (xb - xa); in setRastAB() local
85 if (xa == Float.MIN_VALUE || zdif == 0 || xdif == 0) { in setRastAB()
101 a = zdif / xdif; in setRastAB()
114 a = xdif * za * (zb / zdif); in setRastAB()
/dports/games/scummvm/scummvm-2.5.1/engines/griffon/
H A Dlogic.cpp192 if (xdif < 4) in updateNPCs()
194 if (xdif > -4) in updateNPCs()
203 if (xdif < 4) in updateNPCs()
205 if (xdif > -4) in updateNPCs()
270 if (xdif < 4) in updateNPCs()
281 if (xdif < 4) in updateNPCs()
283 if (xdif > -4) in updateNPCs()
565 float dist = sqrt(xdif * xdif + ydif * ydif); in updateNPCs()
671 float dist = sqrt(xdif * xdif + ydif * ydif); in updateNPCs()
851 float dist = sqrt(xdif * xdif + ydif * ydif); in updateNPCs()
[all …]
H A Dinput.cpp503 int xdif = _player.px - npx; in handleWalking() local
507 if (ABS(xdif) <= 8 && ydif > 0 && ydif < 8) in handleWalking()
510 if (ABS(xdif) <= 8 && ydif < 0 && ydif > -8) in handleWalking()
513 if (ABS(ydif) <= 8 && xdif > 0 && xdif < 8) in handleWalking()
516 if (ABS(ydif) <= 8 && xdif < 0 && xdif > -8) in handleWalking()
H A Dgfx.cpp129 int xdif = x2 - x1; in drawLine() local
132 if (xdif == 0) { in drawLine()
H A Dcombat.cpp510 float xdif = _player.px - npx; in checkHit() local
526 if (ABS(xdif) <= 8 && ydif >= 0 && ydif < 8) in checkHit()
529 if (ABS(xdif) <= 8 && ydif <= 0 && ydif > -8) in checkHit()
532 if (ABS(ydif) <= 8 && xdif >= -8 && xdif < 8) in checkHit()
535 if (ABS(ydif) <= 8 && xdif <= 8 && xdif > -8) in checkHit()
/dports/editors/yudit/yudit-3.0.7/bin/
H A Dangles.pl68 my ($xdif, $ydif) = @_;
72 if ($xdif < -0.1) {
73 $xdif = -$xdif; $xneg = 1;
78 if (int($ydif) < int($xdif)) {
79 $xtmp = $xdif; $xdif = $ydif; $ydif = $xtmp; $xyflip = 1;
82 if (-0.1 < $xdif && $xdif < 0.1) {
95 $islope = int ((100 * $xdif) / $ydif);
/dports/math/chaco/Chaco-2.2/code/inertial/
H A Dinertial3d.c31 double xdif, ydif; /* deviation from center of mass */ local
71 xdif = x[i] - xcm;
74 xx += graph[i]->vwgt * xdif * xdif;
77 xy += graph[i]->vwgt * xdif * ydif;
78 xz += graph[i]->vwgt * xdif * zdif;
84 xdif = x[i] - xcm;
87 xx += xdif * xdif;
90 xy += xdif * ydif;
91 xz += xdif * zdif;
H A Dinertial2d.c30 double xdif, ydif; /* deviation from center of mass */ local
67 xdif = x[i] - xcm;
69 xx += graph[i]->vwgt * xdif * xdif;
71 xy += graph[i]->vwgt * xdif * ydif;
76 xdif = x[i] - xcm;
78 xx += xdif * xdif;
80 xy += xdif * ydif;
/dports/devel/godot2/godot-2.1.6-stable/modules/chibi/
H A Dcp_envelope.cpp56 int end_x, end_y, xdif; in get_height_at_pos() local
77 xdif = end_x - begin_x; in get_height_at_pos()
78 return begin_y + ((pos - begin_x) * (end_y - begin_y)) / (xdif ? xdif : 1); in get_height_at_pos()
120 int end_x, end_y, xdif; in get_interp_height_at_pos() local
141 xdif = end_x - begin_x; in get_interp_height_at_pos()
142 return begin_y + ((pos - begin_x) * (end_y - begin_y)) / (xdif ? xdif : 1); in get_interp_height_at_pos()
/dports/devel/godot2-tools/godot-2.1.6-stable/modules/chibi/
H A Dcp_envelope.cpp56 int end_x, end_y, xdif; in get_height_at_pos() local
77 xdif = end_x - begin_x; in get_height_at_pos()
78 return begin_y + ((pos - begin_x) * (end_y - begin_y)) / (xdif ? xdif : 1); in get_height_at_pos()
120 int end_x, end_y, xdif; in get_interp_height_at_pos() local
141 xdif = end_x - begin_x; in get_interp_height_at_pos()
142 return begin_y + ((pos - begin_x) * (end_y - begin_y)) / (xdif ? xdif : 1); in get_interp_height_at_pos()
/dports/science/cdk/cdk-cdk-2.3/descriptor/qsarmolecular/src/main/java/org/openscience/cdk/qsar/descriptors/molecular/
H A DMomentOfInertiaDescriptor.java194 double xdif; in calculate() local
207 xdif = currentAtom.getPoint3d().x - centerOfMass.x; in calculate()
210 xsq = xdif * xdif; in calculate()
218 imat[1][0] += -1 * mass * ydif * xdif; in calculate()
221 imat[2][0] += -1 * mass * xdif * zdif; in calculate()
/dports/devel/upp/upp/bazaar/PixRaster/lib/
H A Drotateamlow.c59 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMColorLow() local
76 xdif = xcen - j; in rotateAMColorLow()
77 xpm = (l_int32)(-xdif * cosa - ydif * sina); in rotateAMColorLow()
78 ypm = (l_int32)(-ydif * cosa + xdif * sina); in rotateAMColorLow()
135 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMGrayLow() local
152 xdif = xcen - j; in rotateAMGrayLow()
153 xpm = (l_int32)(-xdif * cosa - ydif * sina); in rotateAMGrayLow()
154 ypm = (l_int32)(-ydif * cosa + xdif * sina); in rotateAMGrayLow()
404 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMColorFastLow() local
420 xdif = xcen - j; in rotateAMColorFastLow()
[all …]
H A Dboxfunc2.c257 l_float32 sina, cosa, xdif, ydif, rx, ry, rw, rh; in boxTransformOrdered() local
284 xdif = tx + 0.5 * tw - xcent; in boxTransformOrdered()
304 xdif = tx + 0.5 * tw - xcent; in boxTransformOrdered()
322 xdif = bx + 0.5 * bw - xcen; in boxTransformOrdered()
326 rx = xcen + xdif * cosa - ydif * sina - 0.5 * rw; in boxTransformOrdered()
327 ry = ycen + ydif * cosa + xdif * sina - 0.5 * rh; in boxTransformOrdered()
343 xdif = bx + 0.5 * bw - xcen; in boxTransformOrdered()
347 rx = xcen + xdif * cosa - ydif * sina - 0.5 * rw; in boxTransformOrdered()
348 ry = ycen + ydif * cosa + xdif * sina - 0.5 * rh; in boxTransformOrdered()
366 xdif = tx + 0.5 * bw - xcen; in boxTransformOrdered()
[all …]
H A Drotate.c294 l_int32 w, h, d, i, j, x, y, xdif, ydif, wm1, hm1, wpld; in pixRotateBySampling() local
332 xdif = xcen - j; in pixRotateBySampling()
333 x = xcen + (l_int32)(-xdif * cosa - ydif * sina); in pixRotateBySampling()
335 y = ycen + (l_int32)(-ydif * cosa + xdif * sina); in pixRotateBySampling()
355 xdif = xcen - j; in pixRotateBySampling()
356 x = xcen + (l_int32)(-xdif * cosa - ydif * sina); in pixRotateBySampling()
358 y = ycen + (l_int32)(-ydif * cosa + xdif * sina); in pixRotateBySampling()
/dports/games/spring/spring_98.0/rts/Rendering/Env/
H A DCubeMapHandler.cpp261 const float3& xdif, in CreateSpecularFacePart() argument
268 const float3 dir = (cdir + (xdif * (x + 0.5f)) / size + (ydif * (y + 0.5f)) / size).Normalize(); in CreateSpecularFacePart()
283 const float3& xdif, in CreateSpecularFace() argument
289 CreateSpecularFacePart(texType, size, cdir, xdif, ydif, y, &buf[y * size * 4]); in CreateSpecularFace()
300 const float3& xdif, in UpdateSpecularFace() argument
305 CreateSpecularFacePart(texType, size, cdir, xdif, ydif, y, buf); in UpdateSpecularFace()
/dports/graphics/leptonica/leptonica-1.76.0/src/
H A Drotate.c328 l_int32 w, h, d, i, j, x, y, xdif, ydif, wm1, hm1, wpld; in pixRotateBySampling() local
366 xdif = xcen - j; in pixRotateBySampling()
367 x = xcen + (l_int32)(-xdif * cosa - ydif * sina); in pixRotateBySampling()
369 y = ycen + (l_int32)(-ydif * cosa + xdif * sina); in pixRotateBySampling()
388 xdif = xcen - j; in pixRotateBySampling()
389 x = xcen + (l_int32)(-xdif * cosa - ydif * sina); in pixRotateBySampling()
391 y = ycen + (l_int32)(-ydif * cosa + xdif * sina); in pixRotateBySampling()
H A Dboxfunc2.c292 l_float32 sina, cosa, xdif, ydif, rx, ry, rw, rh; in boxTransformOrdered() local
321 xdif = tx + 0.5 * tw - xcent; in boxTransformOrdered()
340 xdif = tx + 0.5 * tw - xcent; in boxTransformOrdered()
356 xdif = bx + 0.5 * bw - xcen; in boxTransformOrdered()
360 rx = xcen + xdif * cosa - ydif * sina - 0.5 * rw; in boxTransformOrdered()
361 ry = ycen + ydif * cosa + xdif * sina - 0.5 * rh; in boxTransformOrdered()
375 xdif = bx + 0.5 * bw - xcen; in boxTransformOrdered()
379 rx = xcen + xdif * cosa - ydif * sina - 0.5 * rw; in boxTransformOrdered()
380 ry = ycen + ydif * cosa + xdif * sina - 0.5 * rh; in boxTransformOrdered()
396 xdif = tx + 0.5 * bw - xcen; in boxTransformOrdered()
[all …]
H A Drotateam.c308 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMColorLow() local
325 xdif = xcen - j; in rotateAMColorLow()
326 xpm = (l_int32)(-xdif * cosa - ydif * sina); in rotateAMColorLow()
327 ypm = (l_int32)(-ydif * cosa + xdif * sina); in rotateAMColorLow()
379 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMGrayLow() local
396 xdif = xcen - j; in rotateAMGrayLow()
397 xpm = (l_int32)(-xdif * cosa - ydif * sina); in rotateAMGrayLow()
398 ypm = (l_int32)(-ydif * cosa + xdif * sina); in rotateAMGrayLow()
850 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMColorFastLow() local
866 xdif = xcen - j; in rotateAMColorFastLow()
[all …]
/dports/graphics/leptonica/leptonica-1.76.0/prog/
H A Drotatefastalt.c204 l_int32 xdif, ydif, xpm, ypm, xp, yp, xf, yf; in rotateAMColorFastLow2() local
221 xdif = xcen - j; in rotateAMColorFastLow2()
222 xpm = (l_int32)(-xdif * cosa - ydif * sina + 0.5); in rotateAMColorFastLow2()
223 ypm = (l_int32)(-ydif * cosa + xdif * sina + 0.5); in rotateAMColorFastLow2()
/dports/science/afni/afni-AFNI_21.3.16/src/ptaylor/
H A DLS_funcs.c176 float xmin=0., xmax=0., xdif=0.; in PR89_fasper() local
227 xdif = xmax - xmin; in PR89_fasper()
233 FAC = Ndim/(xdif*ofac); in PR89_fasper()
250 DF = 1./(xdif*ofac); in PR89_fasper()
/dports/science/kst2/kst-plot-38eddb5322a1d557f9d86ea95d456d76272941e3/src/plugins/dataobject/periodogram/
H A Dperiodogram.cpp587 double xdif; in FastLombPeriodogram() local
611 xdif = xmax - xmin; in FastLombPeriodogram()
617 fac = ndim / (xdif * ofac); in FastLombPeriodogram()
632 df = 1.0 / (xdif * ofac); in FastLombPeriodogram()
712 double xdif; in SlowLombPeriodogram() local
746 xdif = xmax-xmin; in SlowLombPeriodogram()
749 pnow = 1.0/(xdif*ofac); in SlowLombPeriodogram()
797 pnow += 1.0/(xdif*ofac); in SlowLombPeriodogram()
/dports/games/spring/spring_98.0/rts/Map/
H A DGround.cpp48 const float xdif = dx * (h10 - h00); in InterpolateHeight() local
51 h = h00 + xdif + zdif; in InterpolateHeight()
57 const float xdif = (1.0f - dx) * (h01 - h11); in InterpolateHeight() local
60 h = h11 + xdif + zdif; in InterpolateHeight()
/dports/games/icebreaker/icebreaker-1.9.8/
H A Dlevel.c679 int x,y,xdif,ydif; in levelaction_startclick() local
683 xdif=mousex-x; ydif=mousey-y; in levelaction_startclick()
701 (xdif<BLOCKWIDTH/2) ? startline(&line1,LEFT,x,y) : startline(&line1,LEFT,x+BLOCKWIDTH,y); in levelaction_startclick()
703 (xdif<BLOCKWIDTH/2) ? startline(&line2,RIGHT,x,y) : startline(&line2,RIGHT,x+BLOCKWIDTH,y); in levelaction_startclick()
/dports/science/tinker/tinker/other/
H A Dvirial2.f50 real*8 xdif,ydif,zdif,bolt
316 xdif = rdist + xicm - xjcm
320 x(m) = x(m) + xdif

123