/dports/math/libccd/libccd-2.1/src/testsuites/ |
H A D | support.c | 56 ccd_real_t zdist, rad; in ccdSupport() local 58 zdist = dir.v[0] * dir.v[0] + dir.v[1] * dir.v[1]; in ccdSupport() 59 zdist = CCD_SQRT(zdist); in ccdSupport() 60 if (ccdIsZero(zdist)){ in ccdSupport() 64 rad = cyl->radius / zdist; in ccdSupport()
|
/dports/devel/ode/ode-0.13/libccd/src/testsuites/ |
H A D | support.c | 57 ccd_real_t zdist, rad; in ccdSupport() local 59 zdist = dir.v[0] * dir.v[0] + dir.v[1] * dir.v[1]; in ccdSupport() 60 zdist = CCD_SQRT(zdist); in ccdSupport() 61 if (ccdIsZero(zdist)){ in ccdSupport() 65 rad = cyl->radius / zdist; in ccdSupport()
|
/dports/games/xonotic/Xonotic/source/qcsrc/common/vehicles/vehicle/ |
H A D | spiderbot_weapons.qc | 68 float grav, sdist, zdist, vs, vz, jumpheight; 72 zdist = tgt_z - org_z; 73 sdist = vlen(tgt - org - zdist * '0 0 1'); 74 sdir = normalize(tgt - org - zdist * '0 0 1'); 78 if(zdist > 0) 79 jumpheight = jumpheight + zdist; 86 if(zdist < 0) 90 solution = solve_quadratic(0.5 * grav, -vz, zdist); // equation "z(ti) = zdist" 91 // ALWAYS solvable because jumpheight >= zdist 94 if(zdist == 0) [all …]
|
/dports/math/fcl/fcl-0.7.0/include/fcl/narrowphase/detail/convexity_based_algorithm/ |
H A D | minkowski_diff-inl.h | 146 S zdist = dir[0] * dir[0] + dir[1] * dir[1]; 147 S len = zdist + dir[2] * dir[2]; 148 zdist = std::sqrt(zdist); 157 else if(zdist > 0) 159 S rad = radius / zdist; 169 S zdist = std::sqrt(dir[0] * dir[0] + dir[1] * dir[1]); 171 if(zdist == 0.0) 177 S d = cylinder->radius / zdist;
|
/dports/games/xonotic/Xonotic/source/qcsrc/common/triggers/trigger/ |
H A D | jumppads.qc | 36 float grav, sdist, zdist, vs, vz, jumpheight; 45 zdist = torg.z - org.z; 46 sdist = vlen(torg - org - zdist * '0 0 1'); 47 sdir = normalize(torg - org - zdist * '0 0 1'); 51 if(zdist > 0) 52 jumpheight = jumpheight + zdist; 68 z(ti) = zdist 80 if(zdist < 0) 84 solution = solve_quadratic(0.5 * grav, -vz, zdist); // equation "z(ti) = zdist" 88 if(zdist == 0) [all …]
|
/dports/graphics/Coin/coin-Coin-4.0.0/src/base/ |
H A D | SbVec4d.cpp | 139 double zdist = this->vec[2] - v[2]; in equals() local 142 if((xdist*xdist + ydist*ydist + zdist*zdist + wdist*wdist) <= tolerance) in equals()
|
H A D | SbVec4f.cpp | 138 float zdist = this->vec[2] - v[2]; in equals() local 141 if((xdist*xdist + ydist*ydist + zdist*zdist + wdist*wdist) <= tolerance) in equals()
|
H A D | SbVec3d.cpp | 249 double zdist = this->vec[2] - v[2]; in equals() local 251 return ((xdist*xdist + ydist*ydist + zdist*zdist) <= tolerance); in equals()
|
H A D | SbVec3f.cpp | 252 float zdist = this->vec[2] - v[2]; in equals() local 254 return ((xdist*xdist + ydist*ydist + zdist*zdist) <= tolerance); in equals()
|
/dports/science/tinker/tinker/source/ |
H A D | gradrot.f | 31 real*8 xdist,ydist,zdist local 157 zdist = z(base) - z(partner) 158 norm = sqrt(xdist**2 + ydist**2 + zdist**2) 161 zdist = zdist / norm 167 xterm = ydist*zatom - zdist*yatom 168 yterm = zdist*xatom - xdist*zatom
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/src/ |
H A D | b_bot.c | 58 fixed_t zdist = flip * (sonic->z - tails->z); in B_BuildTailsTiccmd() local 115 else if (dist > followmax || zdist > comfortheight || stalled) in B_BuildTailsTiccmd() 182 if (zdist < -64*scale || (flip * tails->momz) > scale) // Make sure we're not too high up in B_BuildTailsTiccmd() 284 else if (!panic && dist > followmin && abs(zdist) < 192*scale) in B_BuildTailsTiccmd() 310 if (zdist < -64*scale) in B_BuildTailsTiccmd() 312 else if (zdist > 0 && !jump_last) in B_BuildTailsTiccmd() 321 && ((zdist > 32*scale && player->pflags & PF_JUMPED) // Following in B_BuildTailsTiccmd() 322 || (zdist > 64*scale && panic) // Vertical catch-up in B_BuildTailsTiccmd() 328 else if (bot->pflags & PF_JUMPED && jump_last && tails->momz*flip > 0 && (zdist > 0 || panic)) in B_BuildTailsTiccmd()
|
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/radar/ |
H A D | radar.cpp | 367 float zdist, rscale; in plotBlip() local 376 zdist = fl_sqrt((pos->xyz.x * pos->xyz.x) + (pos->xyz.y * pos->xyz.y)); in plotBlip() 381 if (zdist < 0.01f) in plotBlip() 388 new_x_dist = (pos->xyz.x / zdist) * rscale * (Radar_radius[0]/2.0f); in plotBlip() 389 new_y_dist = (pos->xyz.y / zdist) * rscale * (Radar_radius[1]/2.0f); in plotBlip()
|
/dports/games/atr3d/atr3d/ |
H A D | servergame.cpp | 575 float xdist, ydist, zdist; in CalcDistance() local 594 zdist=point1->z-point2->z; in CalcDistance() 596 zdist=point2->z-point1->z; in CalcDistance() 598 if (zdist > 2*ServerWorldWidth-zdist) { in CalcDistance() 599 zdist=2*ServerWorldWidth-zdist; in CalcDistance() 602 return(sqrt(xdist*xdist+ydist*ydist+zdist*zdist)); in CalcDistance()
|
/dports/science/quantum-espresso/q-e-qe-6.7.0/CPV/src/ |
H A D | wannier.f90 | 23 REAL(DP), ALLOCATABLE :: xdist(:), ydist(:), zdist(:) variable 89 IF( ALLOCATED( zdist ) ) DEALLOCATE( zdist ) 468 ydist, zdist 543 rel1(1)=xdist(ir)*a1(1)+ydist(ir)*a2(1)+zdist(ir)*a3(1)-wfc(1,i) 544 rel1(2)=xdist(ir)*a1(2)+ydist(ir)*a2(2)+zdist(ir)*a3(2)-wfc(2,i) 545 rel1(3)=xdist(ir)*a1(3)+ydist(ir)*a2(3)+zdist(ir)*a3(3)-wfc(3,i) 558 rel2(1)=xdist(ir)*a1(1)+ydist(ir)*a2(1)+zdist(ir)*a3(1)-wfc(1,i+1) 559 rel2(2)=xdist(ir)*a1(2)+ydist(ir)*a2(2)+zdist(ir)*a3(2)-wfc(2,i+1) 560 rel2(3)=xdist(ir)*a1(3)+ydist(ir)*a2(3)+zdist(ir)*a3(3)-wfc(3,i+1)
|
/dports/math/fcl05/fcl-0.5.0/src/narrowphase/ |
H A D | gjk_libccd.cpp | 615 double zdist, rad; in supportCyl() local 620 zdist = dir.v[0] * dir.v[0] + dir.v[1] * dir.v[1]; in supportCyl() 621 zdist = sqrt(zdist); in supportCyl() 622 if(ccdIsZero(zdist)) in supportCyl() 626 rad = cyl->radius / zdist; in supportCyl() 646 double zdist, len, rad; in supportCone() local 647 zdist = dir.v[0] * dir.v[0] + dir.v[1] * dir.v[1]; in supportCone() 648 len = zdist + dir.v[2] * dir.v[2]; in supportCone() 649 zdist = sqrt(zdist); in supportCone() 656 else if(zdist > 0) in supportCone() [all …]
|
H A D | gjk.cpp | 118 FCL_REAL zdist = dir[0] * dir[0] + dir[1] * dir[1]; in getSupport() local 119 FCL_REAL len = zdist + dir[2] * dir[2]; in getSupport() 120 zdist = std::sqrt(zdist); in getSupport() 129 else if(zdist > 0) in getSupport() 131 FCL_REAL rad = radius / zdist; in getSupport() 141 FCL_REAL zdist = std::sqrt(dir[0] * dir[0] + dir[1] * dir[1]); in getSupport() local 143 if(zdist == 0.0) in getSupport() 149 FCL_REAL d = cylinder->radius / zdist; in getSupport()
|
/dports/devel/ode/ode-0.13/ode/src/ |
H A D | collision_libccd.cpp | 201 double zdist, rad; in ccdSupportCyl() local 206 zdist = dir.v[0] * dir.v[0] + dir.v[1] * dir.v[1]; in ccdSupportCyl() 207 zdist = sqrt(zdist); in ccdSupportCyl() 208 if (ccdIsZero(zdist)){ in ccdSupportCyl() 211 rad = cyl->radius / zdist; in ccdSupportCyl()
|
/dports/science/elmerfem/elmerfem-release-9.0/fem/src/ |
H A D | Interpolation.F90 | 154 REAL(KIND=dp) :: ug,vg,wg,xdist,ydist,zdist,sumdist,eps0,eps1,eps2,escale,& local 206 zdist = MAX( MAX( Point(3) - maxz, 0.0_dp ), minz - Point(3) ) 208 GlobalDistance = SQRT( xdist**2 + ydist**2 + zdist**2) 212 IF( zdist > eps0 + eps1 * (maxz - minz) ) RETURN 228 zdist = MAX( MAX( Point(3) - maxz, 0.0_dp ), minz - Point(3) ) 229 IF( zdist > eps0 + eps1 * (maxz - minz) ) RETURN
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/radar/ |
H A D | radar.cpp | 386 float zdist, rscale; in plotBlip() local 395 zdist = hypotf(pos->xyz.x, pos->xyz.y); in plotBlip() 399 if (zdist >= 0.01f) in plotBlip() 403 vm_vec_scale(&new_pos, rscale / zdist); // Values are within +/- 1.0f in plotBlip()
|
/dports/games/etracer/etr-0.8.1/src/ |
H A D | particles.h | 130 float zdist; member 152 static void CurtainVec(float angle, float zdist, float &x, float &z);
|
H A D | particles.cpp | 726 zdist = z_dist; in TCurtain() 743 angledist = std::atan(size / 2 / zdist) * 360 / M_PI; in TCurtain() 759 CurtainVec(curt->angle, zdist, x, z); in SetStartParams() 813 CurtainVec(curt->angle, zdist, x, z); in Update() 824 void TCurtain::CurtainVec(float angle, float zdist, float &x, float &z) { in CurtainVec() argument 825 x = zdist * std::sin(angle * M_PI / 180); in CurtainVec() 826 if (angle > 90 || angle < -90) z = std::sqrt(zdist * zdist - x * x); in CurtainVec() 827 else z = -std::sqrt(zdist * zdist - x * x); in CurtainVec()
|
/dports/graphics/springgraph/springgraph-0.88_3/ |
H A D | springgraph.pl | 157 $zdist 494 $zdist = $node{$source}{oldz} - $node{$dest}{oldz}; 495 $dist += $zdist*$zdist; 510 $zmove -= $zdist * $percent if $pov_or_vrml;
|
/dports/graphics/reallyslick/rss-glx_0.9.1/src/Implicit/ |
H A D | impCubeVolume.cpp | 155 const float zdist(cubes[ci].z - eyez); in makeSurface() local 156 sc->depth = xdist * xdist + ydist * ydist + zdist * zdist; in makeSurface() 370 const float zdist(cubes[ci].z - eyez); in makeSurface() local 371 c->depth = xdist * xdist + ydist * ydist + zdist * zdist; in makeSurface()
|
/dports/security/signing-party/signing-party-8f6c9d59d8edbb08dade7bac06417fce07626f7f/springgraph/ |
H A D | springgraph | 149 $zdist 415 $zdist = $node{$source}{oldz} - $node{$dest}{oldz}; 416 $dist += $zdist**2; 431 $zmove -= $zdist * $percent if $pov_or_vrml;
|
/dports/games/jfsw/jfsw-c434002/src/ |
H A D | hornet.c | 351 long zdiff,zdist; in DoHornetMatchPlayerZ() local 362 zdist = Z(20 + RANDOM_RANGE(200)); // put a random amount in DoHornetMatchPlayerZ() 363 if (labs(zdiff) > zdist) in DoHornetMatchPlayerZ()
|