/dports/astro/opencpn/OpenCPN-5.2.4/src/ |
H A D | TCDS_Ascii_Harmonic.cpp | 31 #ifndef M_PI 32 #define M_PI ((2)*(acos(0.0))) macro 366 m_cst_speeds[a] *= M_PI / 648000; /* Convert to radians per second */ in LoadHarmonicConstants() 392 m_cst_epochs[i][b] *= M_PI / 180.0; in LoadHarmonicConstants() 554 psd->epoch[a] = loce * M_PI / 180.; in LoadHarmonicData()
|
H A D | TCDS_Binary_Harmonic.cpp | 348 m_cst_speeds[a] *= M_PI / 648000; /* Convert to radians per second */ in LoadData() 364 m_cst_epochs[i][year] *= M_PI / 180.0; in LoadData() 475 psd->epoch[a] = ptiderec->epoch[a] * M_PI / 180.; in LoadData()
|
H A D | ais.cpp | 824 float angr = brg/180*M_PI; in spherical_ll_gc_ll() 825 float latr = lat*M_PI/180; in spherical_ll_gc_ll() 831 *dlon = lon + asinf(sa*sD/cy) * 180/M_PI; in spherical_ll_gc_ll() 832 *dlat = asinf(sy*cD + cy*sD*ca) * 180/M_PI; in spherical_ll_gc_ll()
|
H A D | geodesic.cpp | 81 lambdaprime = 2 * M_PI; in GreatCircleDistBear() 91 dist = M_PI * b; in GreatCircleDistBear() 116 dist = M_PI * b; in GreatCircleDistBear()
|
H A D | glChartCanvas.cpp | 3765 const float pi_ovr100 = float(M_PI)/100; in RenderWorldChart() 3771 for(float theta = 0; theta < 2*M_PI+.01f; theta+=pi_ovr100) in RenderWorldChart()
|
H A D | mbtiles.cpp | 200 …int y = (int)(floor((1.0 - log( tan(lat * M_PI/180.0) + 1.0 / cos(lat * M_PI/180.0)) / M_PI) / 2.0… in lat2tiley() 216 double latRad = atan(sinh(M_PI*(1-(2*y/n)))); in tiley2lat() 217 return 180.0 / M_PI * latRad; in tiley2lat()
|
H A D | ocpndc.cpp | 300 float a = angle + M_PI/2 + M_PI/steps*i; in DrawEndCap() 386 DrawEndCap( x2, y2, t1, angle + M_PI); in DrawGLThickLine() 770 if(diff > M_PI) in DrawGLThickLines() 771 diff -= 2 * (float)M_PI; in DrawGLThickLines() 798 DrawEndCap( x0, y0, t1, a0 + M_PI); in DrawGLThickLines() 1280 float steps = floorf(wxMax(sqrtf(sqrtf((float)(width*width + height*height))), 1) * M_PI); in DrawEllipse() 1286 for( float a = 0; a <= 2 * M_PI + M_PI/steps; a += 2 * M_PI / steps ) in DrawEllipse() 1293 for( float a = 0; a < 2 * M_PI - M_PI/steps; a += 2 * M_PI / steps ) in DrawEllipse()
|
H A D | s52plib.cpp | 6920 float a = (sectr1 + i * step) * M_PI / 180.0; 11791 for( float a = 0; a <= 2 * M_PI; a += 2 * M_PI / noSegments ) 12436 float a = angle + M_PI/2 + M_PI/steps*i; 12526 PLIBDrawEndCap( x2, y2, t1, angle + M_PI);
|
H A D | tcmgr.cpp | 415 tempd = M_PI / 2.0 * deriv; in _time2dt_tide()
|
/dports/astro/openuniverse/openuniverse-1.0beta3/src/ |
H A D | astrolib.cpp | 40 #ifndef M_PI 41 #define M_PI 3.14159265358979323846 macro 43 #define DEG2RAD(x) ((x)*M_PI/180.0) 44 #define RAD2DEG(x) ((x)*180.0/M_PI)
|
H A D | cfgparse.c | 1129 planets[body_index].Inclination = yyvsp[-9]. dval * M_PI / 180.0; in yyparse() 1131 planets[body_index].Perihelion = yyvsp[-7]. dval * M_PI / 180.0; in yyparse() 1133 planets[body_index].DailyMotion = yyvsp[-5]. dval * M_PI / 180.0; in yyparse() 1160 planets[body_index].Inclination = yyvsp[-9]. dval * M_PI / 180.0; in yyparse() 1162 planets[body_index].Perihelion = yyvsp[-7]. dval * M_PI / 180.0; in yyparse() 1164 planets[body_index].DailyMotion = yyvsp[-5]. dval * M_PI / 180.0; in yyparse() 1223 planets[body_index].Inclination = yyvsp[-8]. dval * M_PI / 180.0; in yyparse() 1225 planets[body_index].Perihelion = yyvsp[-6]. dval * M_PI / 180.0; in yyparse() 1227 planets[body_index].DailyMotion = yyvsp[-4]. dval * M_PI / 180.0; in yyparse() 1259 planets[body_index].Perihelion = yyvsp[-8]. dval * M_PI / 180.0; in yyparse() [all …]
|
H A D | cfgparse.tab.cpp | 1136 planets[body_index].Inclination = yyvsp[-9]. dval * M_PI / 180.0; in yyparse() 1138 planets[body_index].Perihelion = yyvsp[-7]. dval * M_PI / 180.0; in yyparse() 1140 planets[body_index].DailyMotion = yyvsp[-5]. dval * M_PI / 180.0; in yyparse() 1167 planets[body_index].Inclination = yyvsp[-9]. dval * M_PI / 180.0; in yyparse() 1169 planets[body_index].Perihelion = yyvsp[-7]. dval * M_PI / 180.0; in yyparse() 1171 planets[body_index].DailyMotion = yyvsp[-5]. dval * M_PI / 180.0; in yyparse() 1230 planets[body_index].Inclination = yyvsp[-8]. dval * M_PI / 180.0; in yyparse() 1232 planets[body_index].Perihelion = yyvsp[-6]. dval * M_PI / 180.0; in yyparse() 1234 planets[body_index].DailyMotion = yyvsp[-4]. dval * M_PI / 180.0; in yyparse() 1266 planets[body_index].Perihelion = yyvsp[-8]. dval * M_PI / 180.0; in yyparse() [all …]
|
H A D | cfgparse.y | 238 planets[body_index].Inclination = $15 * M_PI / 180.0; 240 planets[body_index].Perihelion = $17 * M_PI / 180.0; 242 planets[body_index].DailyMotion = $19 * M_PI / 180.0; 275 planets[body_index].Inclination = $15 * M_PI / 180.0; 277 planets[body_index].Perihelion = $17 * M_PI / 180.0; 279 planets[body_index].DailyMotion = $19 * M_PI / 180.0; 343 planets[body_index].Inclination = $13 * M_PI / 180.0; 345 planets[body_index].Perihelion = $15 * M_PI / 180.0; 347 planets[body_index].DailyMotion = $17 * M_PI / 180.0; 380 planets[body_index].Inclination = $15 * M_PI / 180.0; [all …]
|
H A D | init.cpp | 350 drho = M_PI / (GLfloat) stacks; in Spheroid() 351 dtheta = 2.0 * M_PI / (GLfloat) slices; in Spheroid() 787 a = (rand() % 360) * M_PI / 180.0; in SetUpComet()
|
H A D | macros.h | 26 #define DEG2RAD(x) ((x)*M_PI/180.0) 27 #define RAD2DEG(x) ((x)*180.0/M_PI)
|
H A D | ou.h | 55 #ifndef M_PI 56 #define M_PI 3.14159265358979323846 macro
|
H A D | positions.cpp | 80 planets[planets[j].Sat].pos[X]) * 180.0 / M_PI; in UpdatePositions() 197 i = atan2(planets[j].pos[Z], planets[j].pos[X]) * 180.0 / M_PI; in UpdatePositions()
|
H A D | rings.cpp | 60 da = 2.0 * M_PI / slices; in Ring() 87 if (a < (M_PI / 3.0)) { in Ring() 116 if (a < (M_PI / 3.0)) { in Ring() 130 da = 2.0 * M_PI / slices; in Ring() 142 atan2(planets[j].pos[Z], planets[j].pos[X]) + M_PI / 3.0; in Ring() 143 while (b > (2 * M_PI)) in Ring() 144 b -= (2 * M_PI); in Ring() 146 b += (2 * M_PI); in Ring() 147 if (inrange(a, b, b + M_PI / 3.0)) { in Ring() 179 if (c > (2 * M_PI)) in inrange() [all …]
|
H A D | sun.cpp | 46 alfa = atan2(campos[Z], campos[X]) - M_PI / 2.0; in SunBillBoard()
|
/dports/astro/oskar/OSKAR-2.8.0/apps/ |
H A D | oskar_convert_ecef_to_enu_main.cpp | 31 double lon = strtod(opt.get_arg(1), 0) * M_PI / 180.0; in main() 32 double lat = strtod(opt.get_arg(2), 0) * M_PI / 180.0; in main()
|
H A D | oskar_convert_geodetic_to_ecef_main.cpp | 36 oskar_mem_scale_real(lon, M_PI / 180.0, 0, num_points, &status); in main() 37 oskar_mem_scale_real(lat, M_PI / 180.0, 0, num_points, &status); in main()
|
H A D | oskar_filter_sky_model_clusters_main.cpp | 25 #define D2R (M_PI / 180.0) 26 #define R2D (180.0 / M_PI) 254 bin_dec[i] = 0.5 * M_PI - bin_dec[i]; in main()
|
/dports/astro/oskar/OSKAR-2.8.0/oskar/apps/src/ |
H A D | oskar_settings_to_sky.cpp | 23 #define D2R M_PI/180.0 24 #define ARCSEC2RAD M_PI/648000.0 211 oskar_convert_brightness_to_jy(data, 0.0, (4.0 * M_PI) / num_pixels, 387 dec = M_PI / 2.0 - dec; in gen_healpix()
|
H A D | oskar_settings_to_telescope.cpp | 20 #define D2R M_PI/180.0 80 OSKAR_COORDS_AZEL, 0.0, (M_PI / 2.0)); in oskar_settings_to_telescope()
|
/dports/astro/oskar/OSKAR-2.8.0/oskar/apps/test/ |
H A D | create_telescope_model.cpp | 13 const double latitude_rad = -50.0 * M_PI / 180.0; in create_telescope_model()
|