From 346dfcfcc93dca8f0e974c88daa0d45e824bb5da Mon Sep 17 00:00:00 2001 From: SoloArchx250 Date: Thu, 28 May 2020 15:28:50 -0400 Subject: [PATCH] created vector instead of vertex --- src/Vector.cpp | 8 ++++++++ src/Vector.h | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 src/Vector.cpp create mode 100644 src/Vector.h diff --git a/src/Vector.cpp b/src/Vector.cpp new file mode 100644 index 0000000..c656c21 --- /dev/null +++ b/src/Vector.cpp @@ -0,0 +1,8 @@ +#include "Vector.h" + +Vector::Vector(float x, float y) { + this->x=x; + this->y=y; +} + +Vector::Vector() {} \ No newline at end of file diff --git a/src/Vector.h b/src/Vector.h new file mode 100644 index 0000000..88157d9 --- /dev/null +++ b/src/Vector.h @@ -0,0 +1,6 @@ +class Vector { + public: + float x,y; + Vector(); + Vector(float x, float y); +}; \ No newline at end of file