Home
last modified time | relevance | path

Searched refs:M_PI (Results 226 – 250 of 24886) sorted by path

12345678910>>...996

/dports/astro/opencpn/OpenCPN-5.2.4/src/
H A DTCDS_Ascii_Harmonic.cpp31 #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 DTCDS_Binary_Harmonic.cpp348 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 Dais.cpp824 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 Dgeodesic.cpp81 lambdaprime = 2 * M_PI; in GreatCircleDistBear()
91 dist = M_PI * b; in GreatCircleDistBear()
116 dist = M_PI * b; in GreatCircleDistBear()
H A DglChartCanvas.cpp3765 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 Dmbtiles.cpp200 …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 Docpndc.cpp300 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 Ds52plib.cpp6920 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 Dtcmgr.cpp415 tempd = M_PI / 2.0 * deriv; in _time2dt_tide()
/dports/astro/openuniverse/openuniverse-1.0beta3/src/
H A Dastrolib.cpp40 #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 Dcfgparse.c1129 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 Dcfgparse.tab.cpp1136 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 Dcfgparse.y238 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 Dinit.cpp350 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 Dmacros.h26 #define DEG2RAD(x) ((x)*M_PI/180.0)
27 #define RAD2DEG(x) ((x)*180.0/M_PI)
H A Dou.h55 #ifndef M_PI
56 #define M_PI 3.14159265358979323846 macro
H A Dpositions.cpp80 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 Drings.cpp60 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 Dsun.cpp46 alfa = atan2(campos[Z], campos[X]) - M_PI / 2.0; in SunBillBoard()
/dports/astro/oskar/OSKAR-2.8.0/apps/
H A Doskar_convert_ecef_to_enu_main.cpp31 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 Doskar_convert_geodetic_to_ecef_main.cpp36 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 Doskar_filter_sky_model_clusters_main.cpp25 #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 Doskar_settings_to_sky.cpp23 #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 Doskar_settings_to_telescope.cpp20 #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 Dcreate_telescope_model.cpp13 const double latitude_rad = -50.0 * M_PI / 180.0; in create_telescope_model()

12345678910>>...996