-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLightPoint.cpp
43 lines (38 loc) · 1.62 KB
/
LightPoint.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "LightPoint.hpp"
//***********************************************************************
// Class constructor
// @param localization Sets the localization of the light point
// @param emission RGB tuple of the light's emission
//***********************************************************************
LightPoint::LightPoint(Point localization, RGB emission){
this->emission = emission;
this->localization = localization;
}
//***********************************************************************
// Sets the value of the emission
// @param emission New RGB tuple of the light's emission
//***********************************************************************
void LightPoint::setEmission(RGB emission){
this->emission = emission;
}
//***********************************************************************
// Returns light's emission
// @returns RGB tuple of the light's emission
//***********************************************************************
RGB LightPoint::getEmission(){
return emission;
}
//***********************************************************************
// Sets the localization
// @param localization New localization for the light point
//***********************************************************************
void LightPoint::setLocalization(Point localization){
this->localization = localization;
}
//***********************************************************************
// Returns the localization
// @returns Point where the light point is localized
//***********************************************************************
Point LightPoint::getLocalization(){
return localization;
}