dx11test

view vec.h @ 0:647ba0689512

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 21 Jun 2013 07:33:06 +0300
parents
children
line source
1 #ifndef VEC_H_
2 #define VEC_H_
4 class Vector3 {
5 public:
6 float x, y, z;
8 Vector3();
9 Vector3(float x, float y, float z);
10 };
12 Vector3::Vector3()
13 {
14 x = y = z = 0.0f;
15 }
17 Vector3::Vector3(float x, float y, float z)
18 {
19 this->x = x;
20 this->y = y;
21 this->z = z;
22 }
24 #endif // VEC_H_