/gdk/samples/quake/jni/ |
gl_rlight.cpp | 195 float dist; local 203 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; 205 if (dist > light->radius) 210 if (dist < -light->radius) 292 front = DotProduct (start, plane->normal) - plane->dist; 293 back = DotProduct (end, plane->normal) - plane->dist;
|
r_local.h | 90 float dist; member in struct:clipplane_s 136 void R_TransformPlane (mplane_t *p, float *normal, float *dist);
|
sv_move.cpp | 233 qboolean SV_StepDirection (edict_t *ent, float yaw, float dist) 242 move[0] = cos(yaw)*dist; 243 move[1] = sin(yaw)*dist; 284 void SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist) 316 if (tdir != turnaround && SV_StepDirection(actor, tdir, dist)) 329 && SV_StepDirection(actor, d[1], dist)) 333 && SV_StepDirection(actor, d[2], dist)) 338 if (olddir!=DI_NODIR && SV_StepDirection(actor, olddir, dist)) 344 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) 350 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) 396 float dist; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
OrientationManager.java | 189 int dist = Math.abs(orientation - orientationHistory); local 190 dist = Math.min(dist, 360 - dist); 191 changeOrientation = (dist >= 45 + ORIENTATION_HYSTERESIS);
|
/external/blktrace/btt/ |
seek.c | 186 long long dist; local 190 dist = start - sip->last_end; 195 dist = 0; 197 dist = start - sip->last_end; 199 dist = start - sip->last_start; 205 return dist; 255 long long dist = seek_dist(sip, iop); local 260 fprintf(fp, "%15.9lf %13lld %c\n", tstamp, dist, rw); 262 fprintf(sip->cfp, "%15.9lf %13lld %c\n", tstamp, dist, rw); 264 dist = llabs(dist) [all...] |
/external/bluetooth/glib/glib/ |
grand.c | 420 guint32 dist = end - begin; local 429 if (dist <= 0x10000L) /* 2^16 */ 444 random = (gint32) (double_rand * dist); 451 random = (gint32) g_rand_double_range (rand, 0, dist); 455 if (dist == 0) 460 * multiple of dist less or equal 2^32. */ 462 if (dist <= 0x80000000u) /* 2^31 */ 464 /* maxvalue = 2^32 - 1 - (2^32 % dist) */ 465 guint32 leftover = (0x80000000u % dist) * 2; 466 if (leftover >= dist) leftover -= dist [all...] |
/external/chromium/chrome/browser/ |
browser_main_win.cc | 173 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 174 if (!ShellUtil::RemoveChromeDesktopShortcut(dist, ShellUtil::CURRENT_USER, 177 if (!ShellUtil::RemoveChromeQuickLaunchShortcut(dist, 283 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 284 scoped_ptr<Version> version(InstallUtil::GetChromeVersion(dist, true)); 289 FilePath user_exe_path(installer::GetChromeInstallPath(false, dist)); 297 InstallUtil::GetChromeUninstallCmd(false, dist->GetType()));
|
shell_integration_win.cc | 279 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 280 if (!ShellUtil::MakeChromeDefault(dist, ShellUtil::CURRENT_USER, 317 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); 318 std::wstring app_name = dist->GetApplicationName(); 323 if (ShellUtil::GetUserSpecificDefaultBrowserSuffix(dist, &suffix))
|
/external/freetype/src/pshinter/ |
pshglob.c | 62 FT_Pos w, dist; local 66 dist = w - stand->cur; 68 if ( dist < 0 ) 69 dist = -dist; 71 if ( dist < 128 ) 97 FT_Pos dist; 101 dist = width - w; 102 if ( dist < 0 ) 103 dist = -dist [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ |
ConstraintDistLimit.java | 14 * This class represents 'Dist limit' constraint type in blender.
23 protected float dist;
field in class:ConstraintDistLimit 45 dist = ((Number) data.getFieldValue("dist")).floatValue();
94 if (currentDistance >= dist) {
96 v.multLocal(dist + (currentDistance - dist) * (1.0f - influence));
101 if (currentDistance > dist) {
103 v.multLocal(dist + (currentDistance - dist) * (1.0f - influence)); [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Plane.java | 202 float dist = pseudoDistance(point);
local 203 if (dist < FastMath.FLT_EPSILON && dist > -FastMath.FLT_EPSILON)
|
/external/opencv/cv/src/ |
_cvkdtree.hpp | 303 accum_type dist; // distance from d to query point member in struct:CvKDTree::bbf_nn 305 : p(&_p), dist(_dist) { 308 return dist < rhs.dist; 315 accum_type dist; // minimum distance from bounds to query point member in struct:CvKDTree::bbf_node 317 : node(_node), dist(_dist) { 320 return dist > rhs.dist; 328 void pq_alternate(int alt_n, bbf_pqueue & pq, scalar_type dist) const { 333 pq.push_back(bbf_node(alt_n, dist)); 355 accum_type dist = 0; local [all...] |
cvgeometry.cpp | 216 int dist; local 230 dist = (ip.y - v0.y)*(v.x - v0.x) - (ip.x - v0.x)*(v.y - v0.y); 231 if( dist == 0 ) 234 dist = -dist; 235 counter += dist > 0; 259 double dist; local 281 dist = (double)(pt.y - v0.y)*(v.x - v0.x) - (double)(pt.x - v0.x)*(v.y - v0.y); 282 if( dist == 0 ) 285 dist = -dist [all...] |
/external/qemu/distrib/zlib-1.2.3/ |
inflate.c | 328 unsigned copy, dist; local 355 dist = state->wsize - state->write; 356 if (dist > copy) dist = copy; 357 zmemcpy(state->window + state->write, strm->next_out - copy, dist); 358 copy -= dist; 365 state->write += dist; 367 if (state->whave < state->wsize) state->whave += dist; [all...] |
/external/quake/quake/src/QW/client/ |
cl_tent.c | 354 vec3_t dist, org; local 374 VectorSubtract (b->end, b->start, dist); 376 if (dist[1] == 0 && dist[0] == 0) 379 if (dist[2] > 0) 386 yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI); 390 forward = sqrt (dist[0]*dist[0] + dist[1]*dist[1]) [all...] |
gl_rlight.c | 192 float dist; local 200 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; 202 if (dist > light->radius) 207 if (dist < -light->radius) 289 front = DotProduct (start, plane->normal) - plane->dist; 290 back = DotProduct (end, plane->normal) - plane->dist;
|
gl_vidandroid.c | 69 float dist, bestdist; local 119 dist = sqrt(((r1*r1)+(g1*g1)+(b1*b1))); 120 if (dist < bestdist) { 122 bestdist = dist;
|
pmove.h | 24 float dist;
member in struct:__anon11609
|
/external/skia/src/core/ |
SkEdge.cpp | 157 SkFDot6 dist = cheap_distance(dx, dy); local 159 // shift down dist (it is currently in dot6) 160 // down by 5 should give us 1/2 pixel accuracy (assuming our dist is accurate...) 163 dist = (dist + (1 << 4)) >> 5; 165 // each subdivision (shift value) cuts this dist (error) by 1/4 166 return (32 - SkCLZ(dist)) >> 1;
|
/external/skia/src/views/ |
SkTouchGesture.cpp | 76 float dist = (fSpeed0 - speed) / K0; local 78 // printf("---- time %g speed %g dist %g\n", t, speed, dist); 79 float tx = fDirection.fX * dist; 80 float ty = fDirection.fY * dist;
|
/external/stlport/test/eh/ |
test_insert.h | 48 size_t dist = 0; local 50 EH_DISTANCE( firstNew, lastNew, dist ); 52 EH_DISTANCE( Iter(firstNew), Iter(lastNew), dist ); local 54 return dist; 85 size_t dist = 0; local 87 EH_DISTANCE( firstNew, lastNew, dist ); 89 EH_DISTANCE( Iter(firstNew), Iter(lastNew), dist ); local 91 keys.reserve( dist );
|
/external/valgrind/main/VEX/useful/ |
smchash.c | 270 Int dist, totDist = 0, nNoDist = 0; local 281 dist = nSetBits(hRunning ^ hInit); 282 totDist += dist; 283 if (dist == 0) nNoDist++; 291 byteIx, bitIx, hRunning ^ hInit, dist); 299 printf("%4d measurements, %5.2f avg dist, %2d zeroes\n", 302 printf("%4d measurements, %5.2f avg dist\n",
|
/external/zlib/contrib/blast/ |
blast.c | 282 int dist; /* distance for copy */ local 333 dist = decode(s, &distcode) << symbol; 334 dist += bits(s, symbol); 335 dist++; 336 if (s->first && dist > s->next) 342 from = to - dist; 344 if (s->next < dist) { 346 copy = dist;
|
/external/zlib/contrib/puff/ |
puff.c | 414 * corresponding number of extra bits are below in the static arrays dist[] 441 unsigned dist; /* distance for copy */ local 482 dist = dists[symbol] + bits(s, dext[symbol]); 484 if (dist > s->outcnt) 495 dist > s->outcnt ? 498 s->out[s->outcnt - dist]; [all...] |
/external/zlib/ |
inflate.c | 383 unsigned copy, dist; local 410 dist = state->wsize - state->wnext; 411 if (dist > copy) dist = copy; 412 zmemcpy(state->window + state->wnext, strm->next_out - copy, dist); 413 copy -= dist; 420 state->wnext += dist; 422 if (state->whave < state->wsize) state->whave += dist; [all...] |