Improved Vector2 with floats & non-member operators

This commit is contained in:
Kayne Ruse
2013-06-21 15:23:07 +10:00
parent fc381348a5
commit 89179626be
2 changed files with 27 additions and 13 deletions
+7 -2
View File
@@ -1,7 +1,12 @@
#include "defines.hpp"
#include "vector2.hpp"
#include <iostream>
using namespace std;
int main(int, char**) {
std::string s = itos(5);
Vector2 v = {1, 1};
Vector2 a = 99 * v;
cout << a.x << ", " << a.y << endl;
return 0;
}