-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathLight.cpp
More file actions
44 lines (37 loc) · 742 Bytes
/
Light.cpp
File metadata and controls
44 lines (37 loc) · 742 Bytes
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
44
#include "Light.h"
Light::Light(LightType lightType, Point3D position, Point3D direction, ColorUnion color)
{
this->lightType = lightType;
this->position = position;
this->direction = direction;
this->color = color;
this->length = 0;
}
Light::Light(LightType lightType, Point3D position, Point3D direction, ColorUnion color, double length)
{
this->lightType = lightType;
this->position = position;
this->direction = direction;
this->color = color;
this->length = length;
}
LightType Light::GetLightType()
{
return lightType;
}
Point3D Light::GetPosition()
{
return position;
}
Point3D Light::GetDirection()
{
return direction;
}
ColorUnion Light::GetColor()
{
return color;
}
double Light::GetLength()
{
return length;
}