created vector instead of vertex

This commit is contained in:
Solomon W. 2020-05-28 15:28:50 -04:00
parent f5bf1f1b2a
commit 346dfcfcc9
2 changed files with 14 additions and 0 deletions

8
src/Vector.cpp Normal file
View File

@ -0,0 +1,8 @@
#include "Vector.h"
Vector::Vector(float x, float y) {
this->x=x;
this->y=y;
}
Vector::Vector() {}

6
src/Vector.h Normal file
View File

@ -0,0 +1,6 @@
class Vector {
public:
float x,y;
Vector();
Vector(float x, float y);
};