daylight  0.1.3
Sunclock Class Reference

#include <Sunclock.hpp>

Public Member Functions

 Sunclock (double const &latitude_, double const &longitude_, double const &tz_offset_=0)
 
double irradiance ()
 
double irradiance (time_t when)
 
time_t sunrise ()
 
time_t sunrise (time_t date)
 
time_t solar_noon ()
 
time_t solar_noon (time_t date)
 
time_t sunset ()
 
time_t sunset (time_t date)
 

Constructor & Destructor Documentation

◆ Sunclock()

Sunclock::Sunclock ( double const &  latitude_,
double const &  longitude_,
double const &  tz_offset_ = 0 
)

Member Function Documentation

◆ irradiance() [1/2]

double Sunclock::irradiance ( )

◆ irradiance() [2/2]

double Sunclock::irradiance ( time_t  when)

Specifically, we calculate Direct Normal Irradiance That is we do not consider atmospheric components like cloud cover, moisture content etc.

Parameters
when
Returns
a value representing irradiance (power per unit area)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ solar_noon() [1/2]

time_t Sunclock::solar_noon ( )

◆ solar_noon() [2/2]

time_t Sunclock::solar_noon ( time_t  date)

Returns solar_noon time for given date

Parameters
dateonly date is considered
Returns
solar_noon time

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ sunrise() [1/2]

time_t Sunclock::sunrise ( )

◆ sunrise() [2/2]

time_t Sunclock::sunrise ( time_t  date)

Returns sunrise time for given date

Parameters
dateonly date is considered
Returns
sunrise time

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ sunset() [1/2]

time_t Sunclock::sunset ( )

◆ sunset() [2/2]

time_t Sunclock::sunset ( time_t  date)

Returns sunset time for given date

Parameters
dateonly date is considered
Returns
sunset time

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


The documentation for this class was generated from the following files: