From eb03252c02fcf09320d484e20b207944069076cc Mon Sep 17 00:00:00 2001 From: Eero Holmala Date: Fri, 28 Apr 2023 15:16:13 +0300 Subject: [PATCH] Add defines for mat2 and mat4 in app --- App/AppLib/include/AppLib/CowPtr.hh | 2 +- App/AppLib/include/AppLib/Math.hh | 14 ++++++++++++-- App/Tests/MathTest.cpp | 3 ++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/App/AppLib/include/AppLib/CowPtr.hh b/App/AppLib/include/AppLib/CowPtr.hh index a1088ea..9fec69f 100644 --- a/App/AppLib/include/AppLib/CowPtr.hh +++ b/App/AppLib/include/AppLib/CowPtr.hh @@ -44,4 +44,4 @@ private: } } }; -} \ No newline at end of file +} // namespace Core \ No newline at end of file diff --git a/App/AppLib/include/AppLib/Math.hh b/App/AppLib/include/AppLib/Math.hh index 9b5ad7c..a8de469 100644 --- a/App/AppLib/include/AppLib/Math.hh +++ b/App/AppLib/include/AppLib/Math.hh @@ -22,7 +22,7 @@ namespace Core Vector2& operator-=(Vector2 const& other); Vector2& operator*=(Vector2 const& other); Vector2& operator/=(Vector2 const& other); - + bool operator==(Vector2 const& other); bool operator!=(Vector2 const& other); @@ -56,4 +56,14 @@ namespace Core Vector3 operator*(float const& scalar); }; -} // namespace Core + class Matrix2x2 + { + //TODO (Eero): Implement + }; + + class Matrix4x4 + { + //TODO (Eero): Implement + }; + +} // namespace Core \ No newline at end of file diff --git a/App/Tests/MathTest.cpp b/App/Tests/MathTest.cpp index 65a50b8..f23f638 100644 --- a/App/Tests/MathTest.cpp +++ b/App/Tests/MathTest.cpp @@ -20,7 +20,8 @@ TEST(Math, Vector2_Add) ASSERT_FLOAT_EQ(result.y, -0.5); } - +//TODO (Eero): Add tests for Vector2 +//TODO (Eero): Add tests for Vector3 int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv);