Added more structure, added abstraction to existing parts

This commit is contained in:
2016-05-11 12:37:18 +02:00
parent 9769b88156
commit 049fb28ffc
25 changed files with 508 additions and 413 deletions
+37
View File
@@ -0,0 +1,37 @@
#pragma once
#include "Header.h"
class Vec3f
{
public:
union
{
struct
{
float x, y, z;
};
float v[3];
};
Vec3f();
Vec3f(Vec3f &other);
Vec3f(float x, float y, float z);
float& operator [](int);
};
class Vec2f
{
public:
union
{
struct
{
float x, y;
};
float v[2];
};
Vec2f();
Vec2f(float x, float y);
Vec2f(Vec2f &other);
float& operator [](int);
};