diff --git a/.gitignore b/.gitignore
index fe2f01e..8d0081d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
/cmake-build/
-/.idea
/out
*.DS_Store
-/extlibs/vcpkg
\ No newline at end of file
+/extlibs/vcpkg
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..defa978
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..79ee123
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/developer-tools.xml b/.idea/developer-tools.xml
new file mode 100644
index 0000000..360c55c
--- /dev/null
+++ b/.idea/developer-tools.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/editor.xml b/.idea/editor.xml
new file mode 100644
index 0000000..fde5348
--- /dev/null
+++ b/.idea/editor.xml
@@ -0,0 +1,435 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..e9caadd
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..dd4c951
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..1046494
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..58855d1
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/omath.iml b/.idea/omath.iml
new file mode 100644
index 0000000..f08604b
--- /dev/null
+++ b/.idea/omath.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..adc159a
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..08ddd13
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "useNewFormat": true
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "associatedIndex": 6
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1743838419436
+
+
+ 1743838419436
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/general/unit_test_angles.cpp b/tests/general/unit_test_angles.cpp
index 1883d78..94ba0ef 100644
--- a/tests/general/unit_test_angles.cpp
+++ b/tests/general/unit_test_angles.cpp
@@ -20,20 +20,20 @@ TEST(unit_test_angles, degrees_to_radians)
TEST(unit_test_angles, horizontal_fov_to_verical)
{
- constexpr float hFov = 90;
- constexpr float aspectRation = 16.0f / 9.0f;
- const auto verticalFov = omath::angles::horizontal_fov_to_vertical(hFov, aspectRation);
+ constexpr float h_fov = 90;
+ constexpr float aspect_ration = 16.0f / 9.0f;
+ const auto vertical_fov = omath::angles::horizontal_fov_to_vertical(h_fov, aspect_ration);
- EXPECT_NEAR(verticalFov, 58.71f, 0.01f);
+ EXPECT_NEAR(vertical_fov, 58.71f, 0.01f);
}
TEST(unit_test_angles, vertical_to_horizontal)
{
- constexpr float vFov = 58.71;
- constexpr float aspectRation = 16.0f / 9.0f;
- const auto horizontalFov = omath::angles::vertical_fov_to_horizontal(vFov, aspectRation);
+ constexpr float v_fov = 58.71;
+ constexpr float aspect_ration = 16.0f / 9.0f;
+ const auto horizontal_fov = omath::angles::vertical_fov_to_horizontal(v_fov, aspect_ration);
- EXPECT_NEAR(horizontalFov, 89.99f, 0.01f);
+ EXPECT_NEAR(horizontal_fov, 89.99f, 0.01f);
}
TEST(unit_test_angles, wrap_angle)
{
diff --git a/tests/general/unit_test_color.cpp b/tests/general/unit_test_color.cpp
index 4498fff..0f0d332 100644
--- a/tests/general/unit_test_color.cpp
+++ b/tests/general/unit_test_color.cpp
@@ -33,7 +33,7 @@ TEST_F(unit_test_color, Constructor_Float)
TEST_F(unit_test_color, Constructor_Vector4)
{
constexpr omath::Vector4 vec(0.2f, 0.4f, 0.6f, 0.8f);
- Color color(vec);
+ constexpr Color color(vec);
EXPECT_FLOAT_EQ(color.x, 0.2f);
EXPECT_FLOAT_EQ(color.y, 0.4f);
EXPECT_FLOAT_EQ(color.z, 0.6f);
@@ -62,16 +62,16 @@ TEST_F(unit_test_color, FromHSV)
// Test HSV conversion
TEST_F(unit_test_color, ToHSV)
{
- Hsv hsv = color1.to_hsv(); // Red color
- EXPECT_FLOAT_EQ(hsv.hue, 0.0f);
- EXPECT_FLOAT_EQ(hsv.saturation, 1.0f);
- EXPECT_FLOAT_EQ(hsv.value, 1.0f);
+ const auto [hue, saturation, value] = color1.to_hsv(); // Red color
+ EXPECT_FLOAT_EQ(hue, 0.0f);
+ EXPECT_FLOAT_EQ(saturation, 1.0f);
+ EXPECT_FLOAT_EQ(value, 1.0f);
}
// Test color blending
TEST_F(unit_test_color, Blend)
{
- Color blended = color1.blend(color2, 0.5f);
+ const Color blended = color1.blend(color2, 0.5f);
EXPECT_FLOAT_EQ(blended.x, 0.5f);
EXPECT_FLOAT_EQ(blended.y, 0.5f);
EXPECT_FLOAT_EQ(blended.z, 0.0f);