-
Notifications
You must be signed in to change notification settings - Fork 0
/
vertex.cpp
57 lines (46 loc) · 833 Bytes
/
vertex.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
46
47
48
49
50
51
52
53
54
55
56
57
#include "vertex.h"
vertex::vertex(const unsigned int &number,const float &x_pos,const float &y_pos,const float &z_pos)
{
m_number = number;
m_X_pos = x_pos;
m_Y_pos = y_pos;
m_Z_pos = z_pos;
}
void vertex::Number(const unsigned int &number)
{
m_number = number;
}
unsigned int vertex::Number()
{
return m_number;
}
void vertex::X_pos(const float &x_pos)
{
m_X_pos = x_pos;
}
float vertex::X_pos()
{
return m_X_pos;
}
void vertex::Y_pos(const float &y_pos)
{
m_Y_pos = y_pos;
}
float vertex::Y_pos()
{
return m_Y_pos;
}
void vertex::Z_pos(const float &z_pos)
{
m_Z_pos = z_pos;
}
float vertex::Z_pos()
{
return m_Z_pos;
}
void vertex::SetPosition(const float &x_pos, const float &y_pos, const float &z_pos)
{
m_X_pos = x_pos;
m_Y_pos = y_pos;
m_Z_pos = z_pos;
}