/src/games/trek/ |
move.c | 84 double angle; local in function:move 102 angle = course * 0.0174532925; 104 angle += Param.navigcrud[1] * (franf() - 0.5); 107 angle += Param.navigcrud[0] * (franf() - 0.5); 108 dx = -cos(angle); 109 dy = sin(angle);
|
torped.c | 52 ** a spread angle. 74 double angle; local in function:torped 116 burst = getintpar("burst angle"); 120 printf("Maximum burst angle is 15 degrees\n"); 134 angle = course2 * 0.0174532925; 135 dx = -cos(angle); 136 dy = sin(angle);
|
computer.c | 320 double angle; local in function:kalc 328 /* get the angle */ 329 angle = atan2(dy, dx); 331 if (angle < 0.0) 332 angle += 6.283185307; 334 course = angle * 57.29577951 + 0.5;
|
phaser.c | 50 #define GAMMA 0.30 /* cos(angle) */ 63 ** of units to fire, and the spread angle. In automatic 87 double angle; member in struct:banks 183 b->angle = hit * 0.0174532925; 228 b->angle = atan2(dy, dx); 273 printf(" a%.2f s%.2f\n", b->angle, b->spread); 303 ** GAMMA is a crud factor for angle (essentially 306 ** angle you are shooting at and the actual 307 ** angle of the klingon, 330 anglefactor = atan2(dy, dx) - b->angle; [all...] |
/src/tests/lib/libm/ |
t_cos.c | 38 int angle; member in struct:__anonb54cc8510108 82 int deg = angles[i].angle; 178 int deg = angles[i].angle; 274 int deg = angles[i].angle;
|
t_sin.c | 38 int angle; member in struct:__anonb66af0d60108 76 int deg = angles[i].angle; 182 int deg = angles[i].angle;
|
t_tan.c | 38 int angle; member in struct:__anonb678a64f0108 72 int deg = angles[i].angle; 178 int deg = angles[i].angle;
|
t_sincos.c | 39 int angle; member in struct:__anon9e01dfdb0108 63 int angle; member in struct:__anon9e01dfdb0208 109 ATF_CHECK_MSG(sin_angles[i].angle == cos_angles[i].angle, 110 "%zu %d %d", i, sin_angles[i].angle, cos_angles[i].angle); 111 int deg = sin_angles[i].angle; 225 ATF_CHECK_MSG(sin_angles[i].angle == cos_angles[i].angle, 226 "%zu %d %d", i, sin_angles[i].angle, cos_angles[i].angle) [all...] |
/src/games/sail/ |
misc.c | 52 static int angle(int, int); 110 angle(int Dr, int Dc) function in typeref:typename:int 146 if ((ang = angle(Dr, Dc) - from->file->dir + 1) < 1) 171 ang = angle(Dr, Dc);
|
/src/games/atc/ |
input.c | 649 int angle; local in function:rel_dir 651 angle = dir_no(c); 654 p.new_dir = p.dir - angle; 659 p.new_dir = p.dir + angle;
|
/src/sys/arch/x68k/stand/libiocs/ |
iocs.h | 116 unsigned char angle; member in struct:iocs_symbolptr
|
/src/sys/dev/bluetooth/ |
btmagic.c | 1252 * angle 6-bits (from E(0)->N(32)->W(64)) 1282 struct hid_location angle; member in struct:__anonb07df8960308 1292 .angle = { .pos = 50, .size = 6 }, 1445 * angle 6-bits (from E(0)->N(32)->W(64)) 1465 struct hid_location angle; member in struct:__anonb07df8960508 1475 .angle = { .pos = 58, .size = 6 },
|
/src/sys/dev/ic/ |
arn9003.c | 2780 int icept, G, I, L, M, angle, xnonlin, y2, y4, sumy2, sumy4; local in function:ar9003_compute_predistortion 3003 angle = y5 + y3; 3004 if (angle < -150) 3005 angle = -150; 3006 else if (angle > 150) 3007 angle = 150; 3008 sc->sc_angle[chain][i] = angle; 3010 /* Angle for entry 4 is derived from angle for entry 5. */
|