-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFace.cpp
45 lines (41 loc) · 875 Bytes
/
Face.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
44
45
#include "Face.h"
#include "Color.h"
Face::Face(){}
Face::Face(Vertex alpha, Vertex beta, Vertex gamma, Color color) :
alpha(alpha), beta(beta), gamma(gamma), color(color){};
void Face::SetAlpha(const Vertex& alpha)
{
this->alpha = alpha;
}
void Face::SetBeta(const Vertex& beta)
{
this->beta = beta;
}
void Face::SetGamma(const Vertex& gamma)
{
this->gamma = gamma;
}
void Face::SetColor(const Color& color)
{
this->color = color;
}
const Vertex& Face::GetAlpha() const
{
return alpha;
}
const Vertex& Face::GetBeta() const
{
return beta;
}
const Vertex& Face::GetGamma() const
{
return gamma;
}
const Color& Face::GetColor() const
{
return color;
}
std::ostream& operator<<(std::ostream& os, const Face &obj) {
os << "<Face(" << obj.GetAlpha() << "," << obj.GetBeta() << "," << obj.GetGamma() << ")\n\b";
return os;
}