-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNormal.cpp
More file actions
executable file
·32 lines (20 loc) · 809 Bytes
/
Normal.cpp
File metadata and controls
executable file
·32 lines (20 loc) · 809 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
/*
* Normal.cpp
*
* Created by Jacopo Volpin on 29/04/10.
*
* classe che identifica un oggetto normale che viene detenuta da Vertex, Triangles e Quads.
*
*/
#include "Normal.h"
Normal::Normal(){ normalX = normalY = normalZ = 0.0f;};
Normal::Normal(GLfloat x, GLfloat y, GLfloat z){ normalX=x; normalY=y, normalZ=z;};
GLfloat Normal::getNormalX() const {return normalX;};
GLfloat Normal::getNormalY() const {return normalY;};
GLfloat Normal::getNormalZ() const {return normalZ;};
void Normal::addNormalX(GLfloat X) { normalX+=X; };
void Normal::addNormalY(GLfloat Y) { normalY+=Y; };
void Normal::addNormalZ(GLfloat Z) { normalZ+=Z; };
void Normal::fixNormalX(GLfloat X) { normalX=X; };
void Normal::fixNormalY(GLfloat Y) { normalY=Y; };
void Normal::fixNormalZ(GLfloat Z) { normalZ=Z; };