Feature/more constexpr (#125)

* added constexpr

* fix

* improved stuff

* added const

* improvement

* fix

* fix

* patch
This commit is contained in:
2025-12-24 02:32:14 +03:00
committed by GitHub
parent 897484bea1
commit d935caf1a4
36 changed files with 543 additions and 399 deletions

View File

@@ -13,7 +13,7 @@ using namespace omath;
TEST(Vector4More, ConstructorsAndClamp)
{
Vector4<float> a;
constexpr Vector4<float> a;
EXPECT_EQ(a.x, 0.f);
EXPECT_EQ(a.y, 0.f);
EXPECT_EQ(a.z, 0.f);
@@ -28,8 +28,8 @@ TEST(Vector4More, ConstructorsAndClamp)
TEST(Vector4More, ComparisonsAndHashFormatter)
{
Vector4<int> a{1,2,3,4};
Vector4<int> b{1,2,3,5};
constexpr Vector4<int> a{1,2,3,4};
constexpr Vector4<int> b{1,2,3,5};
EXPECT_NE(a, b);
// exercise to_string via formatting if available by converting via std::format