Tau

From ENIGMA
Revision as of 14:32, 13 March 2012 by IsmAvatar (talk | contribs) (→‎Uses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Tau is a proposed alternative to Pi, for several very good and convincing reasons. Unfortunately, most languages do not provide a Tau constant, including C/++ and Java.

ENIGMA and EDL also do not provide a Tau constant at this time. The ENIGMA team has reviewed ENIGMA's uses of PI to see if it could be replaced with Tau, and concluded that there would be no benefit, as it is used almost exclusively for radian conversion (pi/180 and inverse), which is a constant operation that would not be affected by tau conversion (tau/360 and inverse).

Uses

As of revision a957be0 (2012-02-27), the following uses of PI can be found throughout the project:

ENIGMAsystem/SHELL/Universal_System/collisions_object.cpp:        const double arad = image_angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Universal_System/collisions_object.cpp:        const double arad = image_angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Universal_System/collisions_object.cpp:        const double arad = image_angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Universal_System/collisions_object.cpp:        const double arad = image_angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double sind(double x)              { return sin(x * M_PI / 180.0); }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double cosd(double x)              { return cos(x * M_PI / 180.0); }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double tand(double x)              { return tan(x * M_PI / 180.0); }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double asind(double x)             { return asin(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double acosd(double x)             { return acos(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double atand(double x)             { return atan(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double atand2(double y,double x)   { return atan2(y,x) * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double arcsind(double x)           { return asin(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double arccosd(double x)           { return acos(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double arctand(double x)           { return atan(x)    * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double arctand2(double y,double x) { return atan2(y,x) * 180.0 / M_PI; }
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double degtorad(double x)         { return x*(M_PI/180.0);}
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double radtodeg(double x)         { return x*(180.0/M_PI);}
ENIGMAsystem/SHELL/Universal_System/mathnc.cpp:double point_direction(double x1,double y1,double x2,double y2) { return fmod((atan2(y1-y2,x2-x1)*(180/M_PI))+360,360); }
ENIGMAsystem/SHELL/Universal_System/mathnc.h:const double pi = M_PI;
ENIGMAsystem/SHELL/Universal_System/move_functions.cpp:static double point_direction(double x1,double y1,double x2,double y2) {return fmod((atan2(y1-y2,x2-x1)*(180/M_PI))+360,360);}
ENIGMAsystem/SHELL/Universal_System/move_functions.cpp:    newdirection *= (M_PI/180.0);
ENIGMAsystem/SHELL/Universal_System/path_functions.cpp:    double tmpx, tmpy, a = (M_PI / 180) * -angle;
ENIGMAsystem/SHELL/Universal_System/path_functions.cpp:        return fmod((atan2(y1-y2,x2-x1)*(180/M_PI))+360,360);
ENIGMAsystem/SHELL/Universal_System/path_functions.cpp:        return fmod((atan2(y2-y1,x1-x2)*(180/M_PI))+360,360);
ENIGMAsystem/SHELL/Universal_System/planar_object.cpp:        instance->hspeed.rval.d -= (sign * instance->friction) * cos(instance->direction.rval.d * M_PI/180);
ENIGMAsystem/SHELL/Universal_System/planar_object.cpp:        instance->vspeed.rval.d -= (sign * instance->friction) * -sin(instance->direction.rval.d * M_PI/180);
ENIGMAsystem/SHELL/Universal_System/planar_object.cpp:      instance->hspeed.rval.d += (instance->gravity) * cos(instance->gravity_direction * M_PI/180);
ENIGMAsystem/SHELL/Universal_System/planar_object.cpp:      instance->vspeed.rval.d += (instance->gravity) *-sin(instance->gravity_direction * M_PI/180);
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:    *hspd = *spd * cos(rval.d*M_PI/180);
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:    *vspd = *spd *-sin(rval.d*M_PI/180);
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:    *hspd = rval.d * cos(*dir*M_PI/180);
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:    *vspd = rval.d *-sin(*dir*M_PI/180);
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:        *dir = (int(180+180*(1-atan2(*vspd,rval.d)/M_PI)))%360;
ENIGMAsystem/SHELL/Universal_System/reflexive_types.cpp:        *dir = (int(180+180*(1-atan2(rval.d,*hspd)/M_PI)))%360;

ENIGMAsystem/SHELL/Collision_Systems/BBox/coll_funcs.cpp:        const double arad = angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Collision_Systems/BBox/coll_funcs.cpp:static inline double point_direction(double x1,double y1,double x2,double y2) {return fmod((atan2(y1-y2,x2-x1)*(180/M_PI))+360,360);}
ENIGMAsystem/SHELL/Collision_Systems/BBox/coll_funcs.cpp:        const double radang = angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Collision_Systems/BBox/coll_funcs.cpp:    double radang = angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Collision_Systems/BBox/coll_impl.cpp:        const double arad = angle*(M_PI/180.0);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:          ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:        ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:        ulcy -= h * sin(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:          ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:      ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSbackground.cpp:      ulcy -= h * sin(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSd3d.cpp:   ymax = zNear * tan(fovy * M_PI / 360.0);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    ulcx = x + xscale * spr2d->xoffset * cos(M_PI+rot) + yscale * spr2d->yoffset * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    ulcy = y - yscale * spr2d->xoffset * sin(M_PI+rot) - yscale * spr2d->yoffset * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    const double mpr = 3*M_PI/2 + rot;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSsprite.cpp:    const double mpr = 3*M_PI/2 + rot;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:	angle *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:	float pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		for(float i=pr;i<M_PI/2;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		for(float i=pr;i<M_PI/2;i+=pr){
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:      float pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:      for(float i=pr;i<2*M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		for(float i=pr;i<M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		for(float i=pr;i<M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:    for(float i=pr;i<2*M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:		float yc=vr*cos((M_PI/2)/hr*xc);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGLES/GSstdraw.cpp:    if (fabs((dir<0?dir+2*M_PI:dir)-(at<0?at+2*M_PI:at)) < 0.01){
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    const double mpr = 3*M_PI/2 + rot;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:          ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:      ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSbackground.cpp:      ulcy -= h * sin(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:    const double cx = (x1+x2)/2, cy = (y1+y2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, invstep = (1.0/steps)*hrep, pr = 2*M_PI/steps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:    const double cx = (x1+x2)/2, cy = (y1+y2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, invstep = (1.0/steps)*hrep, pr = 2*M_PI/steps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:    const double cx = (x1+x2)/2, cy = (y1+y2)/2, cz = (z1+z2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, rz = (z2-z1)/2, invstep = (1.0/steps)*hrep, invstep2 = (1.0/zsteps)*vrep, pr = 2*M_PI/steps, qr = M_PI/zsteps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:    b = qr-M_PI/2;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:        const double cx = (x1+x2)/2, cy = (y1+y2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, invstep = (1.0/steps)*hrep, pr = 2*M_PI/steps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:        const double cx = (x1+x2)/2, cy = (y1+y2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, invstep = (1.0/steps)*hrep, pr = 2*M_PI/steps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:        const double cx = (x1+x2)/2, cy = (y1+y2)/2, cz = (z1+z2)/2, rx = (x2-x1)/2, ry = (y2-y1)/2, rz = (z2-z1)/2, invstep = (1.0/steps)*hrep, invstep2 = (1.0/zsteps)*vrep, pr = 2*M_PI/steps, qr = M_PI/zsteps;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSd3d.cpp:        b = qr-M_PI/2;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSfont.cpp:  rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcx = x - xscale * spr2d->xoffset * cos(rot) + yscale * spr2d->yoffset * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcy = y + xscale * spr2d->xoffset * sin(rot) - yscale * spr2d->yoffset * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    const double mpr = 3*M_PI/2 + rot;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsprite.cpp:    ulcy -= h * sin(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:  angle *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:    double pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:        for(double i=0;i<=2*M_PI; i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:        for(double i=0;i<=2*M_PI; i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:      float pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:      for(float i=pr;i<2*M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:      pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:    for(float i=pr;i<M_PI;i+=pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:    for(float i = pr; i < M_PI; i += pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:        pr=2*M_PI/enigma::circleprecision;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:    for(i = pr; i < 2*M_PI; i += pr)
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:    float yc=vr*cos((M_PI/2)/hr*xc);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSstdraw.cpp:  if (fabs((dir<0?dir+2*M_PI:dir)-(at<0?at+2*M_PI:at)) < 0.01){
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:          ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:        ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:        ulcy -= h * sin(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:    rot *= M_PI/180;
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:    float ulcx = x + xscale * cos(M_PI+rot) + yscale * cos(M_PI/2+rot),
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:          ulcy = y - yscale * sin(M_PI+rot) - yscale * sin(M_PI/2+rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:      ulcx += h * cos(3*M_PI/2 + rot);
ENIGMAsystem/SHELL/Graphics_Systems/OpenGL/GSsurface.cpp:      ulcy -= h * sin(3*M_PI/2 + rot);

ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:    goaldir = atan2(inst->y - y, x - inst->x)*(180/M_PI);
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:        xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:        ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:        goaldir = atan2(pathpy - y, x - pathpx)*(180/M_PI);
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:            ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:                    xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:                    ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:                    xstep = cos(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:                    ystep = -sin(dir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:    inst->direction = atan2(inst->y - y, x - inst->x)*(180/M_PI);
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:    xstep = cos(inst->direction*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:    ystep = -sin(inst->direction*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:    double pathpx = inst->x, pathpy = inst->y, pathpdir = atan2(pathpy - y, x - pathpx)*(180/M_PI);
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:        xstep = cos(pathpdir*M_PI/180)*stepsize;
ENIGMAsystem/SHELL/Universal_System/Extensions/MotionPlanning/mp_movement.cpp:        ystep = -sin(pathpdir*M_PI/180)*stepsize;

ENIGMAsystem/SHELL/Audio_Systems/FMODAudio/FMOD_main.cpp:	int pi = 0;
ENIGMAsystem/SHELL/Audio_Systems/FMODAudio/FMOD_main.cpp:    	FMOD_Geometry_AddPolygon(g, 1, 1, 1, 4, &cube [4 * i], &pi);

CompilerSource/compiler/event_reader/events.res:		vspeed += sin(gravity_direction * pi/180),
CompilerSource/compiler/event_reader/events.res:		hspeed += cos(gravity_direction * pi/180);