mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
reordored omath headers
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include "omath/triangle.hpp"
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace omath::primitives
|
namespace omath::primitives
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include "omath/triangle.hpp"
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace omath::primitives
|
namespace omath::primitives
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
//
|
//
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include "omath/triangle.hpp"
|
|
||||||
|
|
||||||
namespace omath::collision
|
namespace omath::collision
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <omath/angle.hpp>
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
|
|
||||||
namespace omath::iw_engine
|
namespace omath::iw_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <omath/angle.hpp>
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
|
|
||||||
namespace omath::opengl_engine
|
namespace omath::opengl_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <omath/angle.hpp>
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
|
|
||||||
namespace omath::source_engine
|
namespace omath::source_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <omath/angle.hpp>
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
|
|
||||||
namespace omath::unity_engine
|
namespace omath::unity_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <omath/angle.hpp>
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
|
|
||||||
namespace omath::unreal_engine
|
namespace omath::unreal_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Created by Orange on 11/13/2024.
|
// Created by Orange on 11/13/2024.
|
||||||
//
|
//
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "linear_algebra/vector3.hpp"
|
#include "vector3.hpp"
|
||||||
|
|
||||||
namespace omath
|
namespace omath
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "omath/angle.hpp"
|
#include "omath/trigonometry/angle.hpp"
|
||||||
#include "omath/linear_algebra/vector2.hpp"
|
#include "omath/linear_algebra/vector2.hpp"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <expected>
|
#include <expected>
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// Basic math utilities
|
// Basic math utilities
|
||||||
#include "omath/angles.hpp"
|
#include "omath/trigonometry/angles.hpp"
|
||||||
#include "omath/angle.hpp"
|
#include "omath/trigonometry/angle.hpp"
|
||||||
|
|
||||||
// Vector classes (in dependency order)
|
// Vector classes (in dependency order)
|
||||||
#include "omath/linear_algebra/vector2.hpp"
|
#include "omath/linear_algebra/vector2.hpp"
|
||||||
@@ -18,11 +18,11 @@
|
|||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
|
|
||||||
// Color functionality
|
// Color functionality
|
||||||
#include "omath/color.hpp"
|
#include "omath/utility/color.hpp"
|
||||||
|
|
||||||
// Geometric primitives
|
// Geometric primitives
|
||||||
#include "omath/triangle.hpp"
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/view_angles.hpp"
|
#include "omath/trigonometry/view_angles.hpp"
|
||||||
|
|
||||||
// 3D primitives
|
// 3D primitives
|
||||||
#include "omath/3d_primitives/box.hpp"
|
#include "omath/3d_primitives/box.hpp"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#include "omath/linear_algebra/mat.hpp"
|
#include "omath/linear_algebra/mat.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include "omath/projection/error_codes.hpp"
|
#include "omath/projection/error_codes.hpp"
|
||||||
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <expected>
|
#include <expected>
|
||||||
#include <omath/angle.hpp>
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#ifdef OMATH_BUILD_TESTS
|
#ifdef OMATH_BUILD_TESTS
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "omath/angles.hpp"
|
#include "omath/trigonometry/angles.hpp"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <format>
|
#include <format>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "linear_algebra/vector4.hpp"
|
#include "omath/linear_algebra/vector4.hpp"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace omath
|
namespace omath
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
// Created by Orange on 11/30/2024.
|
// Created by Orange on 11/30/2024.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <omath/trigonometry/angle.hpp>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <numbers>
|
#include <numbers>
|
||||||
#include <omath/angle.hpp>
|
|
||||||
|
|
||||||
using namespace omath;
|
using namespace omath;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
//
|
//
|
||||||
// Created by Orange on 11/30/2024.
|
// Created by Orange on 11/30/2024.
|
||||||
//
|
//
|
||||||
|
#include <omath/trigonometry/angles.hpp>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <omath/angles.hpp>
|
|
||||||
|
|
||||||
TEST(unit_test_angles, radians_to_deg)
|
TEST(unit_test_angles, radians_to_deg)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
//
|
//
|
||||||
// Created by Vlad on 01.09.2024.
|
// Created by Vlad on 01.09.2024.
|
||||||
//
|
//
|
||||||
|
#include <omath/utility/color.hpp>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <omath/color.hpp>
|
|
||||||
|
|
||||||
|
|
||||||
using namespace omath;
|
using namespace omath;
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
// Revised unit‑test suite for LineTracer (segment‑based Möller–Trumbore)
|
// Revised unit‑test suite for LineTracer (segment‑based Möller–Trumbore)
|
||||||
// Pure ASCII: avoids non‑standard characters that MSVC rejects.
|
// Pure ASCII: avoids non‑standard characters that MSVC rejects.
|
||||||
//
|
//
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/collision/line_tracer.hpp"
|
#include "omath/collision/line_tracer.hpp"
|
||||||
#include "omath/triangle.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Created by Orange on 1/6/2025.
|
// Created by Orange on 1/6/2025.
|
||||||
//
|
//
|
||||||
#include "omath/triangle.hpp"
|
#include "omath/linear_algebra/triangle.hpp"
|
||||||
#include "omath/linear_algebra/vector3.hpp"
|
#include "omath/linear_algebra/vector3.hpp"
|
||||||
#include <cmath> // For std::sqrt, std::isinf, std::isnan
|
#include <cmath> // For std::sqrt, std::isinf, std::isnan
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//
|
//
|
||||||
// Created by Orange on 11/30/2024.
|
// Created by Orange on 11/30/2024.
|
||||||
//
|
//
|
||||||
#include <omath/view_angles.hpp>
|
#include <omath/trigonometry/view_angles.hpp>
|
||||||
Reference in New Issue
Block a user