Skybright.hpp   Skybright.hpp 
skipping to change at line 24 skipping to change at line 24
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _SKYBRIGHT_HPP_ #ifndef _SKYBRIGHT_HPP_
#define _SKYBRIGHT_HPP_ #define _SKYBRIGHT_HPP_
//! @class Skybright //! @class Skybright
//! Compute the luminance of the sky according to some parameters like sun moon position //! Compute the luminance of the sky according to some parameters like sun moon position
//! or time or altitude etc.. //! or time or altitude etc...
class Skybright class Skybright
{ {
public: public:
//! Constructor //! Constructor
Skybright(); Skybright();
//! Set the sky date to use for atmosphere computation //! Set the sky date to use for atmosphere computation
//! @param year the year in YYYY format //! @param year the year in YYYY format
//! @param month the month: 1=Jan, 12=Dec //! @param month the month: 1=Jan, 12=Dec
//! @param moonPhase the moon phase in radian 0=Full Moon, PI/2=Firs t Quadrant/Last Quadran, PI=No Moon //! @param moonPhase the moon phase in radian 0=Full Moon, PI/2=Firs t Quadrant/Last Quadran, PI=No Moon
void setDate(int year, int month, float moonPhase); void setDate(int year, int month, float moonPhase);
//! Set the position parameters to use for atmosphere computation //! Set the position parameters to use for atmosphere computation
//! @param latitude observer latitude in radian //! @param latitude observer latitude in radian
//! @param altitude observer altitude in m //! @param altitude observer altitude in m
//! @param temperature temperature in deg. C //! @param temperature temperature in deg. C
//! @param humidity air humidity in % //! @param relativeHumidity air humidity in %
void setLocation(float latitude, float altitude, float temperature=1 5.f, float relativeHumidity=40.f); void setLocation(float latitude, float altitude, float temperature=1 5.f, float relativeHumidity=40.f);
//! Set the moon and sun zenith angular distance (cosin given) and p recompute what can be //! Set the moon and sun zenith angular distance (cosin given) and p recompute what can be
//! This funtion has to be called once before any call to getLuminan ce() //! This funtion has to be called once before any call to getLuminan ce()
//! @param cosDistMoonZenith cos(angular distance between moon and z enith) //! @param cosDistMoonZenith cos(angular distance between moon and z enith)
//! @param cosDistSunZenith cos(angular distance between sun and zen ith) //! @param cosDistSunZenith cos(angular distance between sun and zen ith)
void setSunMoon(float cosDistMoonZenith, float cosDistSunZenith); void setSunMoon(float cosDistMoonZenith, float cosDistSunZenith);
//! Compute the luminance at the given position //! Compute the luminance at the given position
//! @param cosDistMoon cos(angular distance between moon and the pos ition) //! @param cosDistMoon cos(angular distance between moon and the pos ition)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/