From a0db48c85f325cc0333e5cdfcba813f77aa380c3 Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Wed, 18 Nov 2020 18:01:43 +0100 Subject: [PATCH] added custom point class for prototyping --- Point.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Point.h diff --git a/Point.h b/Point.h new file mode 100644 index 0000000..2f7ce72 --- /dev/null +++ b/Point.h @@ -0,0 +1,20 @@ +#pragma once + +class Point +{ +private: + float m_x, m_y; + +public: + Point(float x, float y) : m_x(x), m_y(y) {} + + float x() + { + return m_x; + } + + float y() + { + return m_y; + } +}; \ No newline at end of file