Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions include/omath/3d_primitives/box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
//

#pragma once
#include <array>
#include "omath/linear_algebra/vector3.hpp"
#include "omath/triangle.hpp"
#include "omath/vector3.hpp"

#include <array>

namespace omath::primitives
{
Expand Down
2 changes: 1 addition & 1 deletion include/omath/3d_primitives/plane.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//

#pragma once
#include "omath/linear_algebra/vector3.hpp"
#include "omath/triangle.hpp"
#include "omath/vector3.hpp"
#include <array>

namespace omath::primitives
Expand Down
2 changes: 1 addition & 1 deletion include/omath/collision/line_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//
#pragma once

#include "omath/linear_algebra/vector3.hpp"
#include "omath/triangle.hpp"
#include "omath/vector3.hpp"

namespace omath::collision
{
Expand Down
3 changes: 1 addition & 2 deletions include/omath/color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

#pragma once

#include "omath/vector3.hpp"
#include "omath/vector4.hpp"
#include "linear_algebra/vector4.hpp"
#include <cstdint>

namespace omath
Expand Down
4 changes: 2 additions & 2 deletions include/omath/engines/iw_engine/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//

#pragma once
#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>

namespace omath::iw_engine
Expand Down
4 changes: 2 additions & 2 deletions include/omath/engines/opengl_engine/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//
#pragma once

#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>

namespace omath::opengl_engine
Expand Down
4 changes: 2 additions & 2 deletions include/omath/engines/source_engine/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//
#pragma once

#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>

namespace omath::source_engine
Expand Down
4 changes: 2 additions & 2 deletions include/omath/engines/unity_engine/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#pragma once

#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>

namespace omath::unity_engine
Expand Down
4 changes: 2 additions & 2 deletions include/omath/engines/unreal_engine/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#pragma once

#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>

namespace omath::unreal_engine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Created by vlad on 9/29/2024.
//
#pragma once
#include "omath/vector3.hpp"
#include "vector3.hpp"
#include <algorithm>
#include <array>
#include <iomanip>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
#pragma once

#ifdef OMATH_ENABLE_LEGACY
/*
THIS CODE IS DEPRECATED NEVER EVER USE Matrix CLASS
AND VERY SLOW USE Mat INSTEAD!!!!!!!!!!!
⠛⠛⣿⣿⣿⣿⣿⡷⢶⣦⣶⣶⣤⣤⣤⣀⠀⠀⠀
⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀
⠀⠀⠀⠉⠉⠉⠙⠻⣿⣿⠿⠿⠛⠛⠛⠻⣿⣿⣇⠀
⠀⠀⢤⣀⣀⣀⠀⠀⢸⣷⡄⠀⣁⣀⣤⣴⣿⣿⣿⣆
⠀⠀⠀⠀⠹⠏⠀⠀⠀⣿⣧⠀⠹⣿⣿⣿⣿⣿⡿⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠿⠇⢀⣼⣿⣿⠛⢯⡿⡟
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠦⠴⢿⢿⣿⡿⠷⠀⣿⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣷⣶⣶⣤⣤⣤⣤⣤⣶⣦⠃⠀
⠀⠀⠀⠀⠀⠀⠀⢐⣿⣾⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⢿⣿⣿⣿⣿⠟⠁
*/

#ifdef OMATH_ENABLE_LEGACY
#include "omath/vector3.hpp"
#include <initializer_list>
#include <memory>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "omath/angle.hpp"
#include "omath/vector2.hpp"
#include "omath/linear_algebra/vector2.hpp"
#include <cstdint>
#include <expected>
#include <functional>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include <algorithm>
#include <omath/vector3.hpp>
#include "omath/linear_algebra/vector3.hpp"

namespace omath
{
Expand Down
10 changes: 5 additions & 5 deletions include/omath/omath.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#include "omath/angle.hpp"

// Vector classes (in dependency order)
#include "omath/vector2.hpp"
#include "omath/vector3.hpp"
#include "omath/vector4.hpp"
#include "linear_algebra/vector2.hpp"
#include "linear_algebra/vector4.hpp"
#include "omath/linear_algebra/vector3.hpp"

// Matrix classes
#include "omath/mat.hpp"
#include "omath/matrix.hpp"
#include "linear_algebra/matrix.hpp"
#include "omath/linear_algebra/mat.hpp"

// Color functionality
#include "omath/color.hpp"
Expand Down
2 changes: 1 addition & 1 deletion include/omath/pathfinding/a_star.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//

#pragma once
#include "omath/linear_algebra/vector3.hpp"
#include "omath/pathfinding/navigation_mesh.hpp"
#include "omath/vector3.hpp"
#include <vector>

namespace omath::pathfinding
Expand Down
2 changes: 1 addition & 1 deletion include/omath/pathfinding/navigation_mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#pragma once

#include "omath/vector3.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <expected>
#include <string>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion include/omath/projectile_prediction/proj_pred_engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Created by Vlad on 2/23/2025.
//
#pragma once
#include "omath/linear_algebra/vector3.hpp"
#include "omath/projectile_prediction/projectile.hpp"
#include "omath/projectile_prediction/target.hpp"
#include "omath/vector3.hpp"

namespace omath::projectile_prediction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#pragma once

#include "omath/linear_algebra/vector3.hpp"
#include "omath/engines/source_engine/traits/pred_engine_trait.hpp"
#include "omath/projectile_prediction/proj_pred_engine.hpp"
#include "omath/projectile_prediction/projectile.hpp"
#include "omath/projectile_prediction/target.hpp"
#include "omath/vector3.hpp"
#include <optional>

namespace omath::projectile_prediction
Expand Down
2 changes: 1 addition & 1 deletion include/omath/projectile_prediction/projectile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

#pragma once
#include "omath/vector3.hpp"
#include "omath/linear_algebra/vector3.hpp"

namespace omath::projectile_prediction
{
Expand Down
2 changes: 1 addition & 1 deletion include/omath/projectile_prediction/target.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

#pragma once
#include "omath/vector3.hpp"
#include "omath/linear_algebra/vector3.hpp"

namespace omath::projectile_prediction
{
Expand Down
4 changes: 2 additions & 2 deletions include/omath/projection/camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#pragma once

#include "omath/projection/error_codes.hpp"
#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <expected>
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <type_traits>

namespace omath::projection
Expand Down
2 changes: 1 addition & 1 deletion include/omath/triangle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Created by Orange on 11/13/2024.
//
#pragma once
#include "omath/vector3.hpp"
#include "linear_algebra/vector3.hpp"

namespace omath
{
Expand Down
4 changes: 2 additions & 2 deletions tests/general/unit_test_line_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Revised unit‑test suite for LineTracer (segment‑based Möller–Trumbore)
// Pure ASCII: avoids non‑standard characters that MSVC rejects.
//
#include "gtest/gtest.h"
#include "omath/linear_algebra/vector3.hpp"
#include "omath/collision/line_tracer.hpp"
#include "omath/triangle.hpp"
#include "omath/vector3.hpp"
#include "gtest/gtest.h"
#include <cmath>

using namespace omath;
Expand Down
4 changes: 2 additions & 2 deletions tests/general/unit_test_mat.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// UnitTestMat.cpp
#include "omath/linear_algebra/mat.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <gtest/gtest.h>
#include "omath/mat.hpp"
#include "omath/vector3.hpp"

using namespace omath;

Expand Down
5 changes: 2 additions & 3 deletions tests/general/unit_test_triangle.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//
// Created by Orange on 1/6/2025.
//
#include "omath/triangle.hpp"
#include "omath/linear_algebra/vector3.hpp"
#include <cmath> // For std::sqrt, std::isinf, std::isnan
#include <gtest/gtest.h>
#include <omath/vector3.hpp>
#include "omath/triangle.hpp"


using namespace omath;

Expand Down
2 changes: 1 addition & 1 deletion tests/general/unit_test_vector2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Created by Vlad on 02.09.2024.
//

#include <omath/linear_algebra/vector2.hpp>
#include <cfloat> // For FLT_MAX and FLT_MIN
#include <cmath> // For std::isinf and std::isnan
#include <gtest/gtest.h>
#include <omath/vector2.hpp>

using namespace omath;

Expand Down
2 changes: 1 addition & 1 deletion tests/general/unit_test_vector3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Created by Vlad on 01.09.2024.
//

#include <omath/linear_algebra/vector3.hpp>
#include <cfloat> // For FLT_MAX, FLT_MIN
#include <cmath>
#include <gtest/gtest.h>
#include <limits> // For std::numeric_limits
#include <omath/vector3.hpp>

using namespace omath;

Expand Down
2 changes: 1 addition & 1 deletion tests/general/unit_test_vector4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Vector4Test.cpp
//

#include <omath/linear_algebra/vector4.hpp>
#include <gtest/gtest.h>
#include <limits> // For std::numeric_limits
#include <omath/vector4.hpp>

using namespace omath;

Expand Down
Loading