Skylight.hpp   Skylight.hpp 
skipping to change at line 26 skipping to change at line 26
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
// Class which computes the daylight sky color // Class which computes the daylight sky color
// Fast implementation of the algorithm from the article // Fast implementation of the algorithm from the article
// "A Practical Analytic Model for Daylight" by A. J. Preetham, Peter Shirl ey and Brian Smits. // "A Practical Analytic Model for Daylight" by A. J. Preetham, Peter Shirl ey and Brian Smits.
#ifndef _SKYLIGHT_HPP_ #ifndef _SKYLIGHT_HPP_
#define _SKYLIGHT_HPP_ #define _SKYLIGHT_HPP_
#include "StelUtils.hpp"
#include <cmath> #include <cmath>
#include <QDebug> #include <QDebug>
#include "StelUtils.hpp"
typedef struct { typedef struct {
float zenithAngle; // zenithAngle : angular distance to the zenith in radian float zenithAngle; // zenithAngle : angular distance to the zenith in radian
float distSun; // distSun : angular distance to the sun in radian float distSun; // distSun : angular distance to the sun in radian
float color[3]; // 3 component color, can be RGB or CIE color sy stem float color[3]; // 3 component color, can be RGB or CIE color sy stem
} skylightStruct; } skylightStruct;
typedef struct { typedef struct {
float pos[3]; // Vector to the position (vertical = pos[2]) float pos[3]; // Vector to the position (vertical = pos[2])
float color[3]; // 3 component color, can be RGB or CIE color sy stem float color[3]; // 3 component color, can be RGB or CIE color sy stem
 End of changes. 2 change blocks. 
1 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/