From d44c824b92f15c345e8d5c1a40a45450ca97615f Mon Sep 17 00:00:00 2001 From: Eero Holmala Date: Wed, 19 Apr 2023 21:40:57 +0300 Subject: [PATCH] convert vector2 and vector3 to classes instead of structs --- App/AppLib/include/AppLib/Math.hh | 6 ++++-- App/Docs/NOTES.md | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/App/AppLib/include/AppLib/Math.hh b/App/AppLib/include/AppLib/Math.hh index 6989dd7..b5d43b8 100644 --- a/App/AppLib/include/AppLib/Math.hh +++ b/App/AppLib/include/AppLib/Math.hh @@ -5,14 +5,16 @@ https://www.o3de.org/blog/posts/vectors-matrices-matrix-order/ namespace Core { - struct Vec2 + class Vector2 { + public: float x; float y; }; - struct Vec3 + class Vector3 { + public: float x; float y; float z; diff --git a/App/Docs/NOTES.md b/App/Docs/NOTES.md index 40e4707..dd58f05 100644 --- a/App/Docs/NOTES.md +++ b/App/Docs/NOTES.md @@ -2,4 +2,6 @@ ## Notes -Add tests for when you start implementing the AppLib functions. Use gtest for that. Also if you can figure it out (i know you can) add some file movement to build dir automation for cmake. \ No newline at end of file +Add tests for when you start implementing the AppLib functions. Use gtest for that. Also if you can figure it out (i know you can) add some file movement to build dir automation for cmake. + +Remember to think of libraries as co-workers. Don't put the weight of the world on yourself. \ No newline at end of file