Add defines for mat2 and mat4 in app

This commit is contained in:
Eero Holmala 2023-04-28 15:16:13 +03:00
parent e57bd40991
commit eb03252c02
3 changed files with 15 additions and 4 deletions

View File

@ -44,4 +44,4 @@ private:
}
}
};
}
} // namespace Core

View File

@ -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

View File

@ -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);