Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
@@ -0,0 +1,42 @@
$NetBSD: patch-src_lib_astro_solarsystem.cpp,v 1.1 2015/01/07 13:14:30 jperkin Exp $
Avoid 'sun' definition.
--- src/lib/astro/solarsystem.cpp.orig 2014-10-23 21:53:08.000000000 +0000
+++ src/lib/astro/solarsystem.cpp
@@ -352,7 +352,7 @@ void SolarSystem::updateSolar()
const double ae = 23454.77992; // 149597870.0/6378.14 = 1AE -> Earth Radii
double dt, eps2;
- Sun200 sun;
+ Sun200 msun;
Moon200 moon;
Plan200 pln;
Vec3 coff;
@@ -363,7 +363,7 @@ void SolarSystem::updateSolar()
// get positions in ecliptic coordinates of date
dt = ss_time + ss_del_tdut/86400.0;
dt = julcent (dt);
- ss_rs = sun.position(dt);
+ ss_rs = msun.position(dt);
ss_rm = moon.position(dt)/ae;
ss_pmer = pln.Mercury(dt);
ss_pven = pln.Venus(dt);
@@ -914,7 +914,7 @@ Vec3 SolarSystem::SnPos (double &ep2, do
// return the apparent position of the Sun
// and the Nutation ep2 value and the ecliptic longitude of the Sun els
- Sun200 sun;
+ Sun200 msun;
Mat3 mx;
Vec3 rs, s;
double t;
@@ -922,7 +922,7 @@ Vec3 SolarSystem::SnPos (double &ep2, do
t = ss_time + ss_del_tdut/86400.0;
t = julcent (t);
- rs = sun.position(t);
+ rs = msun.position(t);
s = carpol(rs);
els = s[1];