/dports/devel/simgear/simgear-2020.3.11/simgear/ |
H A D | constants.h | 40 #ifndef SGD_PI // remove me once FlightGear no longer uses PLIB 43 const double SGD_PI = M_PI; variable 47 const double SGD_PI = 3.1415926535; variable 53 const double SGD_2PI = SGD_PI * 2.0; 67 const double SGD_DEGREES_TO_RADIANS = SGD_PI / 180.0; 68 const double SGD_RADIANS_TO_DEGREES = 180.0 / SGD_PI;
|
/dports/games/flightgear/flightgear-2020.3.11/utils/GPSsmooth/ |
H A D | gps_main.cxx | 124 if ( diff < -SGD_PI ) { diff += 2.0*SGD_PI; } in gps2fg() 125 if ( diff > SGD_PI ) { diff -= 2.0*SGD_PI; } in gps2fg() 127 if ( phi > 0.5*SGD_PI ) { phi = 0.5*SGD_PI; } in gps2fg() 128 if ( phi < -0.5*SGD_PI ) { phi = -0.5*SGD_PI; } in gps2fg() 135 if ( diff < -SGD_PI ) { diff += 2.0*SGD_PI; } in gps2fg() 136 if ( diff > SGD_PI ) { diff -= 2.0*SGD_PI; } in gps2fg() 138 if ( theta > 0.5*SGD_PI ) { theta = 0.5*SGD_PI; } in gps2fg() 139 if ( theta < -0.5*SGD_PI ) { theta = -0.5*SGD_PI; } in gps2fg()
|
H A D | GPSsmooth.cxx | 140 if ( diff > SGD_PI ) { in interp() 142 } else if ( diff < -SGD_PI ) { in interp()
|
H A D | MIDG-II.cxx | 547 if ( diff > SGD_PI ) { in interp() 549 } else if ( diff < -SGD_PI ) { in interp()
|
H A D | UGear.cxx | 524 if ( diff > SGD_PI ) { in interp() 526 } else if ( diff < -SGD_PI ) { in interp()
|
H A D | UGear_main.cxx | 169 fdm->psi = SGD_PI * 0.5 - atan2(vn, ve); // heading in ugear2fg() 416 ogc->heading = (SGD_PI * 0.5 - atan2(vn, ve)) * SG_RADIANS_TO_DEGREES; in ugear2opengc()
|
/dports/x11-toolkits/plib/plib-1.8.5/src/ssgAux/ |
H A D | ssgaStars.cxx | 165 if ( sol_angle > (0.5 * SGD_PI + 10.0 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 171 else if ( sol_angle > (0.5 * SGD_PI + 8.8 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 176 else if ( sol_angle > (0.5 * SGD_PI + 7.5 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 181 else if ( sol_angle > (0.5 * SGD_PI + 7.0 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 186 else if ( sol_angle > (0.5 * SGD_PI + 6.5 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 191 else if ( sol_angle > (0.5 * SGD_PI + 6.0 * SGD_DEGREES_TO_RADIANS ) ) { in repaint() 196 else if ( sol_angle > (0.5 * SGD_PI + 5.5 * SGD_DEGREES_TO_RADIANS ) ) { in repaint()
|
H A D | ssgaSphere.cxx | 49 drho = SGD_PI / stacks; in ssgaMakeSphere() 50 dtheta = (2.0 * SGD_PI) / slices; in ssgaMakeSphere()
|
H A D | ssgaSky.cxx | 371 double x = 0.5 * SGD_PI * puff_progression / ramp_up; in modifyVisibility() 376 double x = 0.5 * SGD_PI * in modifyVisibility()
|
H A D | ssgaCloudLayer.cxx | 499 *course = SGD_PI; // starting from N pole in calc_gc_course_dist() 521 *course = 2 * SGD_PI - tmp5; in calc_gc_course_dist()
|
/dports/games/flightgear/flightgear-2020.3.11/src/Time/ |
H A D | bodysolver.cxx | 73 double signedPI = (tmp < 0.0) ? -SGD_PI : SGD_PI; in fgBodyPositionGST() 104 double signedPI = (body_angle < 0.0) ? -SGD_PI : SGD_PI; in body_angle()
|
H A D | light.cxx | 331 double hor_rotation = -_sun_rotation - SGD_PI - heading + heading_offset; in update_adj_fog_color() 337 float rf1 = fabs((hor_rotation - SGD_PI) / SGD_PI); // 0.0 .. 1.0 in update_adj_fog_color() 406 double signedPI = (angle < 0.0) ? -SGD_PI : SGD_PI; in updateBodyPos()
|
H A D | tide.cxx | 71 if (fabs(_prev_moon_lon - moon_lon) > (SGD_PI/360.0)) in update()
|
/dports/games/flightgear/flightgear-2020.3.11/src/FDM/SP/ |
H A D | BalloonSim.cpp | 80 balloon_envelope_area = 4.0 * (8.8 * 8.8) * SGD_PI; in balloon() 81 balloon_envelope_volume = (4.0/3.0) * (8.8 * 8.8 * 8.8) * SGD_PI; in balloon() 83 wind_facing_area_of_balloon = SGD_PI * (8.8 * 8.8); in balloon()
|
H A D | AISim.hpp | 45 # define SGD_PI 3.1415926535 macro
|
H A D | AISim.cpp | 651 MT[0] = dir * (-Ixx*(2.0f*RPS*float(SGD_PI)));// Thrus moment in load()
|
/dports/games/flightgear/flightgear-2020.3.11/src/FDM/LaRCsim/ |
H A D | LaRCsim.cxx | 685 while ( tmp_lon_geoc < -SGD_PI ) { tmp_lon_geoc += SGD_2PI; } in copy_from_LaRCsim() 686 while ( tmp_lon_geoc > SGD_PI ) { tmp_lon_geoc -= SGD_2PI; } in copy_from_LaRCsim() 689 while ( tmp_lon < -SGD_PI ) { tmp_lon += SGD_2PI; } in copy_from_LaRCsim() 690 while ( tmp_lon > SGD_PI ) { tmp_lon -= SGD_2PI; } in copy_from_LaRCsim()
|
/dports/devel/simgear/simgear-2020.3.11/simgear/math/ |
H A D | SGGeod.hxx | 371 return (_lon >= -SGD_PI) && (_lon <= SGD_PI) && in isValid()
|
/dports/games/flightgear/flightgear-2020.3.11/src/Network/ |
H A D | ray.cxx | 138 if ( fabs ( ang_pos - chair_heading ) > SGD_PI ) in gen_message()
|
/dports/devel/simgear/simgear-2020.3.11/simgear/scene/sky/ |
H A D | sphere.cxx | 48 drho = SGD_PI / (float) stacks; in SGMakeSphere()
|
H A D | newcloud.cxx | 202 float elev = mt_rand(seed) * SGD_PI; in genCloud()
|
/dports/games/flightgear/flightgear-2020.3.11/src/GUI/ |
H A D | BaseDiagram.cxx | 731 x = (SGD_PI / 2 - lat) * sin(lonDiff); in project() 732 y = -(SGD_PI / 2 - lat) * cos(lonDiff); in project() 736 x = (SGD_PI / 2 + lat) * sin(lonDiff); in project() 737 y = (SGD_PI / 2 + lat) * cos(lonDiff); in project()
|
H A D | MapWidget.cxx | 1647 x = (SGD_PI / 2 - lat) * sin(lonDiff); in project() 1648 y = -(SGD_PI / 2 - lat) * cos(lonDiff); in project() 1652 x = (SGD_PI / 2 + lat) * sin(lonDiff); in project() 1653 y = (SGD_PI / 2 + lat) * cos(lonDiff); in project() 1797 double advance = (SGD_PI * 2) / nSides; in circleAt() 1820 double advance = (SGD_PI * 2) / nSides; in circleAtAlt()
|
/dports/games/flightgear/flightgear-2020.3.11/src/Aircraft/ |
H A D | flightrecorder.cxx | 453 if ( tmp > SGD_PI ) in weighting() 455 else if ( tmp < -SGD_PI ) in weighting()
|
/dports/x11-toolkits/plib/plib-1.8.5/src/sg/ |
H A D | sgd.cxx | 239 deltaAngle = -SGD_PI*0.5; in sgdAngleBetweenNormalizedVec3() 242 deltaAngle = SGD_PI*0.5; in sgdAngleBetweenNormalizedVec3() 255 deltaAngle = deltaAngle + 2*SGD_PI; // unnessecary? in sgdAngleBetweenNormalizedVec3() 272 if ( deltaAngle <= SGD_PI ) in sgdAngleBetweenNormalizedVec3() 273 deltaAngle = SGD_PI - deltaAngle ; in sgdAngleBetweenNormalizedVec3() 275 deltaAngle = 3*SGD_PI - deltaAngle ; in sgdAngleBetweenNormalizedVec3() 279 assert ( deltaAngle <= 2.0*SGD_PI ) ; in sgdAngleBetweenNormalizedVec3()
|