Subversion Repositories public iLand

Rev

Rev 210 | Rev 214 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 210 Rev 211
Line 22... Line 22...
22
class Sun
22
class Sun
23
{
23
{
24
public:
24
public:
25
    void setup(const double latitude_rad);
25
    void setup(const double latitude_rad);
26
    QString dump();
26
    QString dump();
27
    const double &daylength(const int day) { return mDaylength_h[day]; }
27
    const double &daylength(const int day) const { return mDaylength_h[day]; }
-
 
28
    int longestDay() const { return mDayWithMaxLength; }
28
private:
29
private:
29
    double mLatitude;
30
    double mLatitude; ///< latitude in radians
-
 
31
    int mDayWithMaxLength; ///< day of year with maximum day length
30
    double mDaylength_h[366]; ///< daylength per day in hours
32
    double mDaylength_h[366]; ///< daylength per day in hours
31
};
33
};
32
34
33
class Climate
35
class Climate
34
{
36
{