src/rcrt/lights/LightSample.cpp

Go to the documentation of this file.
00001 #include "LightSample.h"
00002 
00003 namespace rcrt
00004 {
00005 
00006 LightSample::LightSample(const float& w, const Vec3D& dir, const float& dis, const RGBColor& p)
00007 :weightV(w),dirV(dir),distV(dis),powerV(p)
00008 {
00009 }
00010 
00011 LightSample::~LightSample()
00012 {
00013 }
00014 
00015 const float& LightSample::weight() const
00016 {
00017         return weightV;
00018 }
00019 
00020 const Vec3D& LightSample::dirToLight() const
00021 {
00022         return dirV;
00023 }
00024 
00025 const float& LightSample::dist() const
00026 {
00027         return distV;
00028 }
00029 
00030 const RGBColor& LightSample::power() const
00031 {
00032         return powerV;
00033 }
00034 
00035 void LightSample::setWeight(const float& w)
00036 {
00037         weightV = w;
00038 }
00039 
00040 }

Generated on Thu Jan 31 19:26:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3