dx11test

annotate vec.h @ 0:647ba0689512

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