Home
last modified time | relevance | path

Searched refs:SGD_PI (Results 1 – 25 of 30) sorted by relevance

12

/dports/devel/simgear/simgear-2020.3.11/simgear/
H A Dconstants.h40 #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 Dgps_main.cxx124 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 DGPSsmooth.cxx140 if ( diff > SGD_PI ) { in interp()
142 } else if ( diff < -SGD_PI ) { in interp()
H A DMIDG-II.cxx547 if ( diff > SGD_PI ) { in interp()
549 } else if ( diff < -SGD_PI ) { in interp()
H A DUGear.cxx524 if ( diff > SGD_PI ) { in interp()
526 } else if ( diff < -SGD_PI ) { in interp()
H A DUGear_main.cxx169 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 DssgaStars.cxx165 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 DssgaSphere.cxx49 drho = SGD_PI / stacks; in ssgaMakeSphere()
50 dtheta = (2.0 * SGD_PI) / slices; in ssgaMakeSphere()
H A DssgaSky.cxx371 double x = 0.5 * SGD_PI * puff_progression / ramp_up; in modifyVisibility()
376 double x = 0.5 * SGD_PI * in modifyVisibility()
H A DssgaCloudLayer.cxx499 *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 Dbodysolver.cxx73 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 Dlight.cxx331 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 Dtide.cxx71 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 DBalloonSim.cpp80 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 DAISim.hpp45 # define SGD_PI 3.1415926535 macro
H A DAISim.cpp651 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 DLaRCsim.cxx685 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 DSGGeod.hxx371 return (_lon >= -SGD_PI) && (_lon <= SGD_PI) && in isValid()
/dports/games/flightgear/flightgear-2020.3.11/src/Network/
H A Dray.cxx138 if ( fabs ( ang_pos - chair_heading ) > SGD_PI ) in gen_message()
/dports/devel/simgear/simgear-2020.3.11/simgear/scene/sky/
H A Dsphere.cxx48 drho = SGD_PI / (float) stacks; in SGMakeSphere()
H A Dnewcloud.cxx202 float elev = mt_rand(seed) * SGD_PI; in genCloud()
/dports/games/flightgear/flightgear-2020.3.11/src/GUI/
H A DBaseDiagram.cxx731 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 DMapWidget.cxx1647 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 Dflightrecorder.cxx453 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 Dsgd.cxx239 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()

12