-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLightSource.h
More file actions
39 lines (24 loc) · 874 Bytes
/
Copy pathLightSource.h
File metadata and controls
39 lines (24 loc) · 874 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
//
// Created by Jiang Kairong on 3/10/18.
//
#ifndef PROG03_INLINEBOOL_LIGHTSOURCE_H
#define PROG03_INLINEBOOL_LIGHTSOURCE_H
#include "Color.h"
class LightSource {
public:
LightSource(const Vector3d &position, const ColorRGB32f &intensity,
const Vector3d &directionA = Vector3d({0., 0., 0.}), const Vector3d &directionB = Vector3d({0., 0., 0.}));
const Vector3d &getPosition() const;
void setPosition(const Vector3d &position);
const ColorRGB32f &getIntensity() const;
void setIntensity(const ColorRGB32f &intensity);
const Vector3d &getDirectionA() const;
void setDirectionA(const Vector3d &directionA);
const Vector3d &getDirectionB() const;
void setDirectionB(const Vector3d &directionB);
private:
Vector3d position;
ColorRGB32f intensity;
Vector3d directionA, directionB;
};
#endif //PROG03_INLINEBOOL_LIGHTSOURCE_H