dx11test

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/vec.h	Fri Jun 21 07:33:06 2013 +0300
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef VEC_H_
     1.5 +#define VEC_H_
     1.6 +
     1.7 +class Vector3 {
     1.8 +public:
     1.9 +	float x, y, z;
    1.10 +
    1.11 +	Vector3();
    1.12 +	Vector3(float x, float y, float z);
    1.13 +};
    1.14 +
    1.15 +Vector3::Vector3()
    1.16 +{
    1.17 +	x = y = z = 0.0f;
    1.18 +}
    1.19 +
    1.20 +Vector3::Vector3(float x, float y, float z)
    1.21 +{
    1.22 +	this->x = x;
    1.23 +	this->y = y;
    1.24 +	this->z = z;
    1.25 +}
    1.26 +
    1.27 +#endif	// VEC_H_
    1.28 \ No newline at end of file