From 7dce3a15dbe55548dc6d25c0742524d0ecdbfda9 Mon Sep 17 00:00:00 2001 From: Tornado Tech <54727692+Tornado-Technology@users.noreply.github.com> Date: Sat, 17 Aug 2024 05:35:45 +1000 Subject: [PATCH] Rename Hypercube.Math to Hypercube.Mathematics --- .../Entities/Systems/Physics/PhysicsSystem.cs | 4 ++-- .../Entities/Systems/Sprite/SpriteComponent.cs | 4 ++-- Hypercube.Client/Entities/Systems/Sprite/SpriteSystem.cs | 4 ++-- Hypercube.Client/Graphics/Drawing/Batch.cs | 2 +- Hypercube.Client/Graphics/Drawing/Vertex.cs | 4 ++-- Hypercube.Client/Graphics/Monitors/IMonitorHandle.cs | 2 +- Hypercube.Client/Graphics/Monitors/MonitorHandle.cs | 2 +- .../Realisation/OpenGL/Rendering/Renderer.Drawing.cs | 8 ++++---- .../Realisation/OpenGL/Rendering/Renderer.Render.cs | 4 ++-- .../Graphics/Realisation/OpenGL/Texturing/Texture.cs | 4 ++-- .../Realisation/OpenGL/Texturing/TextureManager.cs | 4 ++-- Hypercube.Client/Graphics/Rendering/IRenderer.cs | 8 ++++---- Hypercube.Client/Graphics/Texturing/ITexture.cs | 2 +- Hypercube.Client/Graphics/Texturing/ITextureManager.cs | 4 ++-- Hypercube.Client/Graphics/Viewports/Camera2D.cs | 8 ++++---- Hypercube.Client/Graphics/Viewports/CameraManager.cs | 4 ++-- Hypercube.Client/Graphics/Viewports/ICamera.cs | 4 ++-- Hypercube.Client/Graphics/Viewports/ICameraManager.cs | 4 ++-- Hypercube.Client/Graphics/Windows/IWindowManager.cs | 2 +- .../Realisation/GLFW/GlfwWindowManager.Callbacks.cs | 2 +- .../Windows/Realisation/GLFW/GlfwWindowManager.Window.cs | 2 +- .../Windows/Realisation/GLFW/GlfwWindowManager.cs | 2 +- Hypercube.Client/Graphics/Windows/WindowCreateSettings.cs | 2 +- Hypercube.Client/Hypercube.Client.csproj | 2 +- Hypercube.Client/Input/Events/ScrollHandledEvent.cs | 2 +- .../Input/Events/Windowing/WindowingScrollHandledEvent.cs | 2 +- Hypercube.Example.Client/Controls/ControlsSystem.cs | 2 +- Hypercube.Example.Client/Example.cs | 2 +- Hypercube.Example.Client/ExampleSystem.cs | 2 +- Hypercube.Graphics/Hypercube.Graphics.csproj | 2 +- Hypercube.Graphics/Shaders/IShaderProgram.cs | 4 ++-- Hypercube.Graphics/Windowing/WindowHandle.cs | 2 +- .../Implementations/GlfwImGuiController.Input.cs | 2 +- .../Implementations/GlfwImGuiController.Render.cs | 4 ++-- Hypercube.Math/Transforms/ITransform.cs | 8 -------- {Hypercube.Math => Hypercube.Mathematics}/Angle.cs | 6 +++--- {Hypercube.Math => Hypercube.Mathematics}/Color.cs | 4 ++-- .../Extensions/FloatingPointEqualsExtension.cs | 2 +- {Hypercube.Math => Hypercube.Mathematics}/HyperMath.cs | 2 +- {Hypercube.Math => Hypercube.Mathematics}/HyperMathF.cs | 2 +- .../Hypercube.Mathematics.csproj | 0 .../Matrices/Matrix3X2.Compatibility.cs | 2 +- .../Matrices/Matrix3X2.cs | 4 ++-- .../Matrices/Matrix3X3.Compatibility.cs | 2 +- .../Matrices/Matrix3X3.cs | 4 ++-- .../Matrices/Matrix4X4.Compatibility.cs | 2 +- .../Matrices/Matrix4X4.cs | 8 ++++---- {Hypercube.Math => Hypercube.Mathematics}/Quaternion.cs | 4 ++-- {Hypercube.Math => Hypercube.Mathematics}/Shapes/Box2.cs | 4 ++-- .../Shapes/Circle.cs | 4 ++-- Hypercube.Mathematics/Transforms/ITransform.cs | 8 ++++++++ .../Transforms/Transform2.Compatibility.cs | 4 ++-- .../Transforms/Transform2.cs | 6 +++--- .../Transforms/Transform3.Compatibility.cs | 2 +- .../Transforms/Transform3.cs | 6 +++--- .../Vectors/Vector2.Compatibility.cs | 2 +- .../Vectors/Vector2.cs | 4 ++-- .../Vectors/Vector2Int.Compatibility.cs | 2 +- .../Vectors/Vector2Int.cs | 2 +- .../Vectors/Vector3.Compatibility.cs | 2 +- .../Vectors/Vector3.cs | 4 ++-- .../Vectors/Vector4.Compatibility.cs | 2 +- .../Vectors/Vector4.cs | 4 ++-- Hypercube.OpenGL/Shaders/ShaderProgram.cs | 4 ++-- Hypercube.OpenGL/Utilities/Helpers/GLFWHelper.cs | 2 +- Hypercube.Shared/Animation/Procedural/IKFabric2D.cs | 2 +- Hypercube.Shared/Animation/Procedural/Segment2D.cs | 2 +- .../Entities/Systems/Physics/PhysicsComponent.cs | 4 ++-- .../Systems/Transform/Coordinates/SceneCoordinates.cs | 2 +- .../Entities/Systems/Transform/TransformComponent.cs | 2 +- .../Entities/Systems/Transform/TransformSystem.cs | 2 +- Hypercube.Shared/Hypercube.Shared.csproj | 2 +- Hypercube.Shared/Physics/Chunk.cs | 2 +- Hypercube.Shared/Physics/Collisions.cs | 4 ++-- Hypercube.Shared/Physics/IBody.cs | 4 ++-- Hypercube.Shared/Physics/IShape.cs | 4 ++-- Hypercube.Shared/Physics/Manifold.cs | 2 +- Hypercube.Shared/Physics/Raycasting/RaycastResult.cs | 2 +- Hypercube.Shared/Physics/Shapes/CircleShape.cs | 4 ++-- Hypercube.Shared/Physics/Shapes/PolygonShape.cs | 4 ++-- Hypercube.Shared/Physics/Shapes/RectangleShape.cs | 4 ++-- Hypercube.Shared/Physics/Transform.cs | 2 +- Hypercube.Shared/Physics/World.cs | 2 +- Hypercube.UnitTests/Hypercube.UnitTests.csproj | 2 +- Hypercube.UnitTests/Math/AngleTest.cs | 4 ++-- Hypercube.UnitTests/Math/FloatingPointTest.cs | 2 +- Hypercube.UnitTests/Math/Matrix4X4Test.cs | 4 ++-- Hypercube.UnitTests/Math/QuaternionTest.cs | 4 ++-- Hypercube.sln | 2 +- 89 files changed, 146 insertions(+), 146 deletions(-) delete mode 100644 Hypercube.Math/Transforms/ITransform.cs rename {Hypercube.Math => Hypercube.Mathematics}/Angle.cs (96%) rename {Hypercube.Math => Hypercube.Mathematics}/Color.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Extensions/FloatingPointEqualsExtension.cs (91%) rename {Hypercube.Math => Hypercube.Mathematics}/HyperMath.cs (91%) rename {Hypercube.Math => Hypercube.Mathematics}/HyperMathF.cs (91%) rename Hypercube.Math/Hypercube.Math.csproj => Hypercube.Mathematics/Hypercube.Mathematics.csproj (100%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix3X2.Compatibility.cs (96%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix3X2.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix3X3.Compatibility.cs (96%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix3X3.cs (99%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix4X4.Compatibility.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Matrices/Matrix4X4.cs (99%) rename {Hypercube.Math => Hypercube.Mathematics}/Quaternion.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Shapes/Box2.cs (96%) rename {Hypercube.Math => Hypercube.Mathematics}/Shapes/Circle.cs (85%) create mode 100644 Hypercube.Mathematics/Transforms/ITransform.cs rename {Hypercube.Math => Hypercube.Mathematics}/Transforms/Transform2.Compatibility.cs (82%) rename {Hypercube.Math => Hypercube.Mathematics}/Transforms/Transform2.cs (90%) rename {Hypercube.Math => Hypercube.Mathematics}/Transforms/Transform3.Compatibility.cs (89%) rename {Hypercube.Math => Hypercube.Mathematics}/Transforms/Transform3.cs (91%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector2.Compatibility.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector2.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector2Int.Compatibility.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector2Int.cs (99%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector3.Compatibility.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector3.cs (98%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector4.Compatibility.cs (97%) rename {Hypercube.Math => Hypercube.Mathematics}/Vectors/Vector4.cs (98%) diff --git a/Hypercube.Client/Entities/Systems/Physics/PhysicsSystem.cs b/Hypercube.Client/Entities/Systems/Physics/PhysicsSystem.cs index 82f86b7..637a371 100644 --- a/Hypercube.Client/Entities/Systems/Physics/PhysicsSystem.cs +++ b/Hypercube.Client/Entities/Systems/Physics/PhysicsSystem.cs @@ -1,8 +1,8 @@ using Hypercube.Client.Graphics.Events; using Hypercube.Client.Graphics.Rendering; using Hypercube.Dependencies; -using Hypercube.Math; -using Hypercube.Math.Shapes; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Shapes; using Hypercube.Shared.Entities.Systems.Physics; using Hypercube.Shared.Physics; using SharedPhysicsSystem = Hypercube.Shared.Entities.Systems.Physics.PhysicsSystem; diff --git a/Hypercube.Client/Entities/Systems/Sprite/SpriteComponent.cs b/Hypercube.Client/Entities/Systems/Sprite/SpriteComponent.cs index e4b4b7d..4e8a844 100644 --- a/Hypercube.Client/Entities/Systems/Sprite/SpriteComponent.cs +++ b/Hypercube.Client/Entities/Systems/Sprite/SpriteComponent.cs @@ -1,7 +1,7 @@ using Hypercube.Client.Graphics.Texturing; using Hypercube.Shared.Entities.Realisation.Components; -using Hypercube.Math; -using Hypercube.Math.Transforms; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Transforms; using Hypercube.Shared.Resources; namespace Hypercube.Client.Entities.Systems.Sprite; diff --git a/Hypercube.Client/Entities/Systems/Sprite/SpriteSystem.cs b/Hypercube.Client/Entities/Systems/Sprite/SpriteSystem.cs index eefb834..302ec15 100644 --- a/Hypercube.Client/Entities/Systems/Sprite/SpriteSystem.cs +++ b/Hypercube.Client/Entities/Systems/Sprite/SpriteSystem.cs @@ -2,8 +2,8 @@ using Hypercube.Client.Graphics.Rendering; using Hypercube.Client.Graphics.Texturing; using Hypercube.Dependencies; -using Hypercube.Math.Shapes; -using Hypercube.Math.Transforms; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Transforms; using Hypercube.Shared.Entities.Realisation; using Hypercube.Shared.Entities.Realisation.Events; using Hypercube.Shared.Entities.Realisation.Systems; diff --git a/Hypercube.Client/Graphics/Drawing/Batch.cs b/Hypercube.Client/Graphics/Drawing/Batch.cs index bcfcd23..2aaefb4 100644 --- a/Hypercube.Client/Graphics/Drawing/Batch.cs +++ b/Hypercube.Client/Graphics/Drawing/Batch.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Matrices; +using Hypercube.Mathematics.Matrices; using OpenToolkit.Graphics.OpenGL4; namespace Hypercube.Client.Graphics.Drawing; diff --git a/Hypercube.Client/Graphics/Drawing/Vertex.cs b/Hypercube.Client/Graphics/Drawing/Vertex.cs index 05da903..6688746 100644 --- a/Hypercube.Client/Graphics/Drawing/Vertex.cs +++ b/Hypercube.Client/Graphics/Drawing/Vertex.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -using Hypercube.Math; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Drawing; diff --git a/Hypercube.Client/Graphics/Monitors/IMonitorHandle.cs b/Hypercube.Client/Graphics/Monitors/IMonitorHandle.cs index 755f92d..906b49e 100644 --- a/Hypercube.Client/Graphics/Monitors/IMonitorHandle.cs +++ b/Hypercube.Client/Graphics/Monitors/IMonitorHandle.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Monitors; diff --git a/Hypercube.Client/Graphics/Monitors/MonitorHandle.cs b/Hypercube.Client/Graphics/Monitors/MonitorHandle.cs index 78b28bf..0a1d43b 100644 --- a/Hypercube.Client/Graphics/Monitors/MonitorHandle.cs +++ b/Hypercube.Client/Graphics/Monitors/MonitorHandle.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Monitors; diff --git a/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Drawing.cs b/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Drawing.cs index 366907a..022ea76 100644 --- a/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Drawing.cs +++ b/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Drawing.cs @@ -1,9 +1,9 @@ using Hypercube.Client.Graphics.Drawing; using Hypercube.Client.Graphics.Texturing; -using Hypercube.Math; -using Hypercube.Math.Matrices; -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; using OpenToolkit.Graphics.OpenGL4; namespace Hypercube.Client.Graphics.Realisation.OpenGL.Rendering; diff --git a/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Render.cs b/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Render.cs index d64e5be..3d3ae28 100644 --- a/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Render.cs +++ b/Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Render.cs @@ -3,8 +3,8 @@ using Hypercube.Client.Resources.Caching; using Hypercube.Graphics.Shaders; using Hypercube.Graphics.Windowing; -using Hypercube.Math; -using Hypercube.Math.Matrices; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Matrices; using Hypercube.OpenGL.Objects; using Hypercube.Shared.Runtimes.Loop.Event; using OpenToolkit.Graphics.OpenGL4; diff --git a/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/Texture.cs b/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/Texture.cs index 07da43c..6765c41 100644 --- a/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/Texture.cs +++ b/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/Texture.cs @@ -1,6 +1,6 @@ using Hypercube.Client.Graphics.Texturing; -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Resources; namespace Hypercube.Client.Graphics.Realisation.OpenGL.Texturing; diff --git a/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/TextureManager.cs b/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/TextureManager.cs index 4be9538..78d88a8 100644 --- a/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/TextureManager.cs +++ b/Hypercube.Client/Graphics/Realisation/OpenGL/Texturing/TextureManager.cs @@ -1,8 +1,8 @@ using Hypercube.Client.Graphics.Texturing; using Hypercube.Client.Graphics.Texturing.Settings; using Hypercube.Dependencies; -using Hypercube.Math; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Resources; using Hypercube.Shared.Resources.Manager; using StbImageSharp; diff --git a/Hypercube.Client/Graphics/Rendering/IRenderer.cs b/Hypercube.Client/Graphics/Rendering/IRenderer.cs index 9e7ae23..81ad638 100644 --- a/Hypercube.Client/Graphics/Rendering/IRenderer.cs +++ b/Hypercube.Client/Graphics/Rendering/IRenderer.cs @@ -2,10 +2,10 @@ using Hypercube.Client.Graphics.Texturing; using Hypercube.Client.Graphics.Windows; using Hypercube.Graphics.Windowing; -using Hypercube.Math; -using Hypercube.Math.Matrices; -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Rendering; diff --git a/Hypercube.Client/Graphics/Texturing/ITexture.cs b/Hypercube.Client/Graphics/Texturing/ITexture.cs index ed36678..9c72af6 100644 --- a/Hypercube.Client/Graphics/Texturing/ITexture.cs +++ b/Hypercube.Client/Graphics/Texturing/ITexture.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Shapes; +using Hypercube.Mathematics.Shapes; using Hypercube.Shared.Resources; namespace Hypercube.Client.Graphics.Texturing; diff --git a/Hypercube.Client/Graphics/Texturing/ITextureManager.cs b/Hypercube.Client/Graphics/Texturing/ITextureManager.cs index 5f764af..4b8e191 100644 --- a/Hypercube.Client/Graphics/Texturing/ITextureManager.cs +++ b/Hypercube.Client/Graphics/Texturing/ITextureManager.cs @@ -1,6 +1,6 @@ using Hypercube.Client.Graphics.Texturing.Settings; -using Hypercube.Math; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Resources; namespace Hypercube.Client.Graphics.Texturing; diff --git a/Hypercube.Client/Graphics/Viewports/Camera2D.cs b/Hypercube.Client/Graphics/Viewports/Camera2D.cs index 543e465..2163d73 100644 --- a/Hypercube.Client/Graphics/Viewports/Camera2D.cs +++ b/Hypercube.Client/Graphics/Viewports/Camera2D.cs @@ -1,7 +1,7 @@ -using Hypercube.Math; -using Hypercube.Math.Matrices; -using Hypercube.Math.Transforms; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Transforms; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Viewports; diff --git a/Hypercube.Client/Graphics/Viewports/CameraManager.cs b/Hypercube.Client/Graphics/Viewports/CameraManager.cs index cd98000..db15412 100644 --- a/Hypercube.Client/Graphics/Viewports/CameraManager.cs +++ b/Hypercube.Client/Graphics/Viewports/CameraManager.cs @@ -1,8 +1,8 @@ using Hypercube.Client.Input.Handler; using Hypercube.Dependencies; using Hypercube.Input; -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Viewports; diff --git a/Hypercube.Client/Graphics/Viewports/ICamera.cs b/Hypercube.Client/Graphics/Viewports/ICamera.cs index 2dff12d..8da3707 100644 --- a/Hypercube.Client/Graphics/Viewports/ICamera.cs +++ b/Hypercube.Client/Graphics/Viewports/ICamera.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Viewports; diff --git a/Hypercube.Client/Graphics/Viewports/ICameraManager.cs b/Hypercube.Client/Graphics/Viewports/ICameraManager.cs index d38cf10..cd15d43 100644 --- a/Hypercube.Client/Graphics/Viewports/ICameraManager.cs +++ b/Hypercube.Client/Graphics/Viewports/ICameraManager.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Viewports; diff --git a/Hypercube.Client/Graphics/Windows/IWindowManager.cs b/Hypercube.Client/Graphics/Windows/IWindowManager.cs index 3ee862a..46d1491 100644 --- a/Hypercube.Client/Graphics/Windows/IWindowManager.cs +++ b/Hypercube.Client/Graphics/Windows/IWindowManager.cs @@ -2,7 +2,7 @@ using Hypercube.Client.Graphics.Realisation.OpenGL; using Hypercube.Client.Graphics.Texturing; using Hypercube.Graphics.Windowing; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Resources; using Hypercube.Shared.Resources.Manager; diff --git a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Callbacks.cs b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Callbacks.cs index 831309e..dfef713 100644 --- a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Callbacks.cs +++ b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Callbacks.cs @@ -1,7 +1,7 @@ using Hypercube.Client.Input.Events.Windowing; using Hypercube.EventBus.Events; using Hypercube.Input; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.OpenGL.Utilities.Helpers; using OpenTK.Windowing.GraphicsLibraryFramework; diff --git a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Window.cs b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Window.cs index a9de4c7..4b5e211 100644 --- a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Window.cs +++ b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.Window.cs @@ -4,7 +4,7 @@ using Hypercube.Client.Graphics.Realisation.OpenGL; using Hypercube.Client.Graphics.Texturing; using Hypercube.Graphics.Windowing; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.OpenGL.Utilities.Helpers; using Hypercube.Shared.Resources; using Hypercube.Shared.Resources.Manager; diff --git a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.cs b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.cs index e386400..01a6c24 100644 --- a/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.cs +++ b/Hypercube.Client/Graphics/Windows/Realisation/GLFW/GlfwWindowManager.cs @@ -4,7 +4,7 @@ using Hypercube.Dependencies; using Hypercube.EventBus; using Hypercube.Graphics.Windowing; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Logging; using OpenTK.Windowing.GraphicsLibraryFramework; diff --git a/Hypercube.Client/Graphics/Windows/WindowCreateSettings.cs b/Hypercube.Client/Graphics/Windows/WindowCreateSettings.cs index 05df513..de62216 100644 --- a/Hypercube.Client/Graphics/Windows/WindowCreateSettings.cs +++ b/Hypercube.Client/Graphics/Windows/WindowCreateSettings.cs @@ -1,6 +1,6 @@ using Hypercube.Client.Graphics.Monitors; using Hypercube.Client.Graphics.Texturing; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Graphics.Windows; diff --git a/Hypercube.Client/Hypercube.Client.csproj b/Hypercube.Client/Hypercube.Client.csproj index bb13cd2..8af94cc 100644 --- a/Hypercube.Client/Hypercube.Client.csproj +++ b/Hypercube.Client/Hypercube.Client.csproj @@ -16,7 +16,7 @@ - + diff --git a/Hypercube.Client/Input/Events/ScrollHandledEvent.cs b/Hypercube.Client/Input/Events/ScrollHandledEvent.cs index 7f134e6..d8e12d5 100644 --- a/Hypercube.Client/Input/Events/ScrollHandledEvent.cs +++ b/Hypercube.Client/Input/Events/ScrollHandledEvent.cs @@ -1,5 +1,5 @@ using Hypercube.EventBus.Events; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using JetBrains.Annotations; namespace Hypercube.Client.Input.Events; diff --git a/Hypercube.Client/Input/Events/Windowing/WindowingScrollHandledEvent.cs b/Hypercube.Client/Input/Events/Windowing/WindowingScrollHandledEvent.cs index d5b426f..e89267e 100644 --- a/Hypercube.Client/Input/Events/Windowing/WindowingScrollHandledEvent.cs +++ b/Hypercube.Client/Input/Events/Windowing/WindowingScrollHandledEvent.cs @@ -1,5 +1,5 @@ using Hypercube.EventBus.Events; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Client.Input.Events.Windowing; diff --git a/Hypercube.Example.Client/Controls/ControlsSystem.cs b/Hypercube.Example.Client/Controls/ControlsSystem.cs index a623b06..2205e6e 100644 --- a/Hypercube.Example.Client/Controls/ControlsSystem.cs +++ b/Hypercube.Example.Client/Controls/ControlsSystem.cs @@ -1,7 +1,7 @@ using Hypercube.Client.Input.Handler; using Hypercube.Dependencies; using Hypercube.Input; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Entities.Realisation.Systems; using Hypercube.Shared.Entities.Systems.Physics; using Hypercube.Shared.Runtimes.Loop.Event; diff --git a/Hypercube.Example.Client/Example.cs b/Hypercube.Example.Client/Example.cs index f1302c3..f0d1c6c 100644 --- a/Hypercube.Example.Client/Example.cs +++ b/Hypercube.Example.Client/Example.cs @@ -7,7 +7,7 @@ using Hypercube.Dependencies; using Hypercube.EventBus; using Hypercube.Example.Client.Controls; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Entities.Realisation.Manager; using Hypercube.Shared.Entities.Systems.Physics; using Hypercube.Shared.Entities.Systems.Transform.Coordinates; diff --git a/Hypercube.Example.Client/ExampleSystem.cs b/Hypercube.Example.Client/ExampleSystem.cs index da4ca0c..18b801f 100644 --- a/Hypercube.Example.Client/ExampleSystem.cs +++ b/Hypercube.Example.Client/ExampleSystem.cs @@ -1,6 +1,6 @@ using Hypercube.Client.Entities.Systems.Sprite; using Hypercube.Dependencies; -using Hypercube.Math; +using Hypercube.Mathematics; using Hypercube.Shared.Entities.Realisation.Systems; using Hypercube.Shared.Runtimes.Loop.Event; using Hypercube.Shared.Timing; diff --git a/Hypercube.Graphics/Hypercube.Graphics.csproj b/Hypercube.Graphics/Hypercube.Graphics.csproj index b8dabca..58dac58 100644 --- a/Hypercube.Graphics/Hypercube.Graphics.csproj +++ b/Hypercube.Graphics/Hypercube.Graphics.csproj @@ -7,7 +7,7 @@ - + diff --git a/Hypercube.Graphics/Shaders/IShaderProgram.cs b/Hypercube.Graphics/Shaders/IShaderProgram.cs index 59e5340..8022afc 100644 --- a/Hypercube.Graphics/Shaders/IShaderProgram.cs +++ b/Hypercube.Graphics/Shaders/IShaderProgram.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; using JetBrains.Annotations; namespace Hypercube.Graphics.Shaders; diff --git a/Hypercube.Graphics/Windowing/WindowHandle.cs b/Hypercube.Graphics/Windowing/WindowHandle.cs index f662464..94de5e6 100644 --- a/Hypercube.Graphics/Windowing/WindowHandle.cs +++ b/Hypercube.Graphics/Windowing/WindowHandle.cs @@ -1,5 +1,5 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using JetBrains.Annotations; namespace Hypercube.Graphics.Windowing; diff --git a/Hypercube.ImGui/Implementations/GlfwImGuiController.Input.cs b/Hypercube.ImGui/Implementations/GlfwImGuiController.Input.cs index 52b54ab..4c734bc 100644 --- a/Hypercube.ImGui/Implementations/GlfwImGuiController.Input.cs +++ b/Hypercube.ImGui/Implementations/GlfwImGuiController.Input.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.ImGui.Implementations; diff --git a/Hypercube.ImGui/Implementations/GlfwImGuiController.Render.cs b/Hypercube.ImGui/Implementations/GlfwImGuiController.Render.cs index c08b236..2e497b6 100644 --- a/Hypercube.ImGui/Implementations/GlfwImGuiController.Render.cs +++ b/Hypercube.ImGui/Implementations/GlfwImGuiController.Render.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; using ImGuiNET; using OpenToolkit.Graphics.OpenGL4; diff --git a/Hypercube.Math/Transforms/ITransform.cs b/Hypercube.Math/Transforms/ITransform.cs deleted file mode 100644 index 25a5638..0000000 --- a/Hypercube.Math/Transforms/ITransform.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Hypercube.Math.Matrices; - -namespace Hypercube.Math.Transforms; - -public interface ITransform -{ - Matrix4X4 Matrix { get; } -} \ No newline at end of file diff --git a/Hypercube.Math/Angle.cs b/Hypercube.Mathematics/Angle.cs similarity index 96% rename from Hypercube.Math/Angle.cs rename to Hypercube.Mathematics/Angle.cs index d7d6b48..9bcad14 100644 --- a/Hypercube.Math/Angle.cs +++ b/Hypercube.Mathematics/Angle.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Extensions; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Extensions; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math; +namespace Hypercube.Mathematics; public readonly struct Angle : IEquatable, IEquatable { diff --git a/Hypercube.Math/Color.cs b/Hypercube.Mathematics/Color.cs similarity index 98% rename from Hypercube.Math/Color.cs rename to Hypercube.Mathematics/Color.cs index 5fe42aa..0049616 100644 --- a/Hypercube.Math/Color.cs +++ b/Hypercube.Mathematics/Color.cs @@ -1,8 +1,8 @@ using System.Globalization; using System.Runtime.InteropServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math; +namespace Hypercube.Mathematics; [StructLayout(LayoutKind.Sequential)] public readonly struct Color diff --git a/Hypercube.Math/Extensions/FloatingPointEqualsExtension.cs b/Hypercube.Mathematics/Extensions/FloatingPointEqualsExtension.cs similarity index 91% rename from Hypercube.Math/Extensions/FloatingPointEqualsExtension.cs rename to Hypercube.Mathematics/Extensions/FloatingPointEqualsExtension.cs index d5a4df1..b8e83cb 100644 --- a/Hypercube.Math/Extensions/FloatingPointEqualsExtension.cs +++ b/Hypercube.Mathematics/Extensions/FloatingPointEqualsExtension.cs @@ -1,4 +1,4 @@ -namespace Hypercube.Math.Extensions; +namespace Hypercube.Mathematics.Extensions; public static class FloatingPointEqualsExtension { diff --git a/Hypercube.Math/HyperMath.cs b/Hypercube.Mathematics/HyperMath.cs similarity index 91% rename from Hypercube.Math/HyperMath.cs rename to Hypercube.Mathematics/HyperMath.cs index 1c08e3f..6b1c16a 100644 --- a/Hypercube.Math/HyperMath.cs +++ b/Hypercube.Mathematics/HyperMath.cs @@ -1,4 +1,4 @@ -namespace Hypercube.Math; +namespace Hypercube.Mathematics; public static class HyperMath { diff --git a/Hypercube.Math/HyperMathF.cs b/Hypercube.Mathematics/HyperMathF.cs similarity index 91% rename from Hypercube.Math/HyperMathF.cs rename to Hypercube.Mathematics/HyperMathF.cs index f7563ce..31aaa63 100644 --- a/Hypercube.Math/HyperMathF.cs +++ b/Hypercube.Mathematics/HyperMathF.cs @@ -1,4 +1,4 @@ -namespace Hypercube.Math; +namespace Hypercube.Mathematics; public static class HyperMathF { diff --git a/Hypercube.Math/Hypercube.Math.csproj b/Hypercube.Mathematics/Hypercube.Mathematics.csproj similarity index 100% rename from Hypercube.Math/Hypercube.Math.csproj rename to Hypercube.Mathematics/Hypercube.Mathematics.csproj diff --git a/Hypercube.Math/Matrices/Matrix3X2.Compatibility.cs b/Hypercube.Mathematics/Matrices/Matrix3X2.Compatibility.cs similarity index 96% rename from Hypercube.Math/Matrices/Matrix3X2.Compatibility.cs rename to Hypercube.Mathematics/Matrices/Matrix3X2.Compatibility.cs index 9914ff0..0e789d9 100644 --- a/Hypercube.Math/Matrices/Matrix3X2.Compatibility.cs +++ b/Hypercube.Mathematics/Matrices/Matrix3X2.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; public partial struct Matrix3X2 { diff --git a/Hypercube.Math/Matrices/Matrix3X2.cs b/Hypercube.Mathematics/Matrices/Matrix3X2.cs similarity index 98% rename from Hypercube.Math/Matrices/Matrix3X2.cs rename to Hypercube.Mathematics/Matrices/Matrix3X2.cs index 22daecd..db165df 100644 --- a/Hypercube.Math/Matrices/Matrix3X2.cs +++ b/Hypercube.Mathematics/Matrices/Matrix3X2.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; public partial struct Matrix3X2 { diff --git a/Hypercube.Math/Matrices/Matrix3X3.Compatibility.cs b/Hypercube.Mathematics/Matrices/Matrix3X3.Compatibility.cs similarity index 96% rename from Hypercube.Math/Matrices/Matrix3X3.Compatibility.cs rename to Hypercube.Mathematics/Matrices/Matrix3X3.Compatibility.cs index e9aad46..f37ed21 100644 --- a/Hypercube.Math/Matrices/Matrix3X3.Compatibility.cs +++ b/Hypercube.Mathematics/Matrices/Matrix3X3.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; public partial struct Matrix3X3 { diff --git a/Hypercube.Math/Matrices/Matrix3X3.cs b/Hypercube.Mathematics/Matrices/Matrix3X3.cs similarity index 99% rename from Hypercube.Math/Matrices/Matrix3X3.cs rename to Hypercube.Mathematics/Matrices/Matrix3X3.cs index 0389bff..f1c646c 100644 --- a/Hypercube.Math/Matrices/Matrix3X3.cs +++ b/Hypercube.Mathematics/Matrices/Matrix3X3.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; // TODO: May be it's can be immutable [StructLayout(LayoutKind.Sequential)] diff --git a/Hypercube.Math/Matrices/Matrix4X4.Compatibility.cs b/Hypercube.Mathematics/Matrices/Matrix4X4.Compatibility.cs similarity index 98% rename from Hypercube.Math/Matrices/Matrix4X4.Compatibility.cs rename to Hypercube.Mathematics/Matrices/Matrix4X4.Compatibility.cs index 5016bda..5e2f572 100644 --- a/Hypercube.Math/Matrices/Matrix4X4.Compatibility.cs +++ b/Hypercube.Mathematics/Matrices/Matrix4X4.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; public partial struct Matrix4X4 { diff --git a/Hypercube.Math/Matrices/Matrix4X4.cs b/Hypercube.Mathematics/Matrices/Matrix4X4.cs similarity index 99% rename from Hypercube.Math/Matrices/Matrix4X4.cs rename to Hypercube.Mathematics/Matrices/Matrix4X4.cs index 555c7d2..cdbde42 100644 --- a/Hypercube.Math/Matrices/Matrix4X4.cs +++ b/Hypercube.Mathematics/Matrices/Matrix4X4.cs @@ -1,10 +1,10 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Shapes; -using Hypercube.Math.Transforms; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Transforms; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Matrices; +namespace Hypercube.Mathematics.Matrices; [StructLayout(LayoutKind.Sequential)] public partial struct Matrix4X4 : IEquatable diff --git a/Hypercube.Math/Quaternion.cs b/Hypercube.Mathematics/Quaternion.cs similarity index 98% rename from Hypercube.Math/Quaternion.cs rename to Hypercube.Mathematics/Quaternion.cs index 35c624e..e11bb53 100644 --- a/Hypercube.Math/Quaternion.cs +++ b/Hypercube.Mathematics/Quaternion.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math; +namespace Hypercube.Mathematics; [StructLayout(LayoutKind.Sequential)] public readonly struct Quaternion : IEquatable diff --git a/Hypercube.Math/Shapes/Box2.cs b/Hypercube.Mathematics/Shapes/Box2.cs similarity index 96% rename from Hypercube.Math/Shapes/Box2.cs rename to Hypercube.Mathematics/Shapes/Box2.cs index 2041bf8..a0dd584 100644 --- a/Hypercube.Math/Shapes/Box2.cs +++ b/Hypercube.Mathematics/Shapes/Box2.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Shapes; +namespace Hypercube.Mathematics.Shapes; public readonly struct Box2 { diff --git a/Hypercube.Math/Shapes/Circle.cs b/Hypercube.Mathematics/Shapes/Circle.cs similarity index 85% rename from Hypercube.Math/Shapes/Circle.cs rename to Hypercube.Mathematics/Shapes/Circle.cs index f5c18f9..bfc0738 100644 --- a/Hypercube.Math/Shapes/Circle.cs +++ b/Hypercube.Mathematics/Shapes/Circle.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Shapes; +namespace Hypercube.Mathematics.Shapes; public readonly struct Circle(Vector2 position, float radius) { diff --git a/Hypercube.Mathematics/Transforms/ITransform.cs b/Hypercube.Mathematics/Transforms/ITransform.cs new file mode 100644 index 0000000..4690765 --- /dev/null +++ b/Hypercube.Mathematics/Transforms/ITransform.cs @@ -0,0 +1,8 @@ +using Hypercube.Mathematics.Matrices; + +namespace Hypercube.Mathematics.Transforms; + +public interface ITransform +{ + Matrix4X4 Matrix { get; } +} \ No newline at end of file diff --git a/Hypercube.Math/Transforms/Transform2.Compatibility.cs b/Hypercube.Mathematics/Transforms/Transform2.Compatibility.cs similarity index 82% rename from Hypercube.Math/Transforms/Transform2.Compatibility.cs rename to Hypercube.Mathematics/Transforms/Transform2.Compatibility.cs index a145f17..723ae94 100644 --- a/Hypercube.Math/Transforms/Transform2.Compatibility.cs +++ b/Hypercube.Mathematics/Transforms/Transform2.Compatibility.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Transforms; +namespace Hypercube.Mathematics.Transforms; public partial struct Transform2 { diff --git a/Hypercube.Math/Transforms/Transform2.cs b/Hypercube.Mathematics/Transforms/Transform2.cs similarity index 90% rename from Hypercube.Math/Transforms/Transform2.cs rename to Hypercube.Mathematics/Transforms/Transform2.cs index 6b5bd39..bb9c5e7 100644 --- a/Hypercube.Math/Transforms/Transform2.cs +++ b/Hypercube.Mathematics/Transforms/Transform2.cs @@ -1,7 +1,7 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Transforms; +namespace Hypercube.Mathematics.Transforms; public partial struct Transform2 : ITransform { diff --git a/Hypercube.Math/Transforms/Transform3.Compatibility.cs b/Hypercube.Mathematics/Transforms/Transform3.Compatibility.cs similarity index 89% rename from Hypercube.Math/Transforms/Transform3.Compatibility.cs rename to Hypercube.Mathematics/Transforms/Transform3.Compatibility.cs index f600547..394491a 100644 --- a/Hypercube.Math/Transforms/Transform3.Compatibility.cs +++ b/Hypercube.Mathematics/Transforms/Transform3.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Transforms; +namespace Hypercube.Mathematics.Transforms; public partial struct Transform3 { diff --git a/Hypercube.Math/Transforms/Transform3.cs b/Hypercube.Mathematics/Transforms/Transform3.cs similarity index 91% rename from Hypercube.Math/Transforms/Transform3.cs rename to Hypercube.Mathematics/Transforms/Transform3.cs index 3f5b242..b53abed 100644 --- a/Hypercube.Math/Transforms/Transform3.cs +++ b/Hypercube.Mathematics/Transforms/Transform3.cs @@ -1,7 +1,7 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; -namespace Hypercube.Math.Transforms; +namespace Hypercube.Mathematics.Transforms; public partial struct Transform3 : ITransform { diff --git a/Hypercube.Math/Vectors/Vector2.Compatibility.cs b/Hypercube.Mathematics/Vectors/Vector2.Compatibility.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector2.Compatibility.cs rename to Hypercube.Mathematics/Vectors/Vector2.Compatibility.cs index 06d55c7..56ced34 100644 --- a/Hypercube.Math/Vectors/Vector2.Compatibility.cs +++ b/Hypercube.Mathematics/Vectors/Vector2.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; public readonly partial struct Vector2 { diff --git a/Hypercube.Math/Vectors/Vector2.cs b/Hypercube.Mathematics/Vectors/Vector2.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector2.cs rename to Hypercube.Mathematics/Vectors/Vector2.cs index a9c3441..5cacb8d 100644 --- a/Hypercube.Math/Vectors/Vector2.cs +++ b/Hypercube.Mathematics/Vectors/Vector2.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Extensions; +using Hypercube.Mathematics.Extensions; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; [StructLayout(LayoutKind.Sequential)] public readonly partial struct Vector2 : IEquatable diff --git a/Hypercube.Math/Vectors/Vector2Int.Compatibility.cs b/Hypercube.Mathematics/Vectors/Vector2Int.Compatibility.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector2Int.Compatibility.cs rename to Hypercube.Mathematics/Vectors/Vector2Int.Compatibility.cs index 4d3397d..e61341d 100644 --- a/Hypercube.Math/Vectors/Vector2Int.Compatibility.cs +++ b/Hypercube.Mathematics/Vectors/Vector2Int.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; public readonly partial struct Vector2Int { diff --git a/Hypercube.Math/Vectors/Vector2Int.cs b/Hypercube.Mathematics/Vectors/Vector2Int.cs similarity index 99% rename from Hypercube.Math/Vectors/Vector2Int.cs rename to Hypercube.Mathematics/Vectors/Vector2Int.cs index 3367517..ab310c6 100644 --- a/Hypercube.Math/Vectors/Vector2Int.cs +++ b/Hypercube.Mathematics/Vectors/Vector2Int.cs @@ -2,7 +2,7 @@ using System.Runtime.InteropServices; using JetBrains.Annotations; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; [PublicAPI, StructLayout(LayoutKind.Sequential)] public readonly partial struct Vector2Int : IEquatable, IComparable, IComparable diff --git a/Hypercube.Math/Vectors/Vector3.Compatibility.cs b/Hypercube.Mathematics/Vectors/Vector3.Compatibility.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector3.Compatibility.cs rename to Hypercube.Mathematics/Vectors/Vector3.Compatibility.cs index 367f864..053a786 100644 --- a/Hypercube.Math/Vectors/Vector3.Compatibility.cs +++ b/Hypercube.Mathematics/Vectors/Vector3.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; public readonly partial struct Vector3 { diff --git a/Hypercube.Math/Vectors/Vector3.cs b/Hypercube.Mathematics/Vectors/Vector3.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector3.cs rename to Hypercube.Mathematics/Vectors/Vector3.cs index c83a19e..3847e5f 100644 --- a/Hypercube.Math/Vectors/Vector3.cs +++ b/Hypercube.Mathematics/Vectors/Vector3.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Extensions; +using Hypercube.Mathematics.Extensions; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; [StructLayout(LayoutKind.Sequential)] public readonly partial struct Vector3 : IEquatable diff --git a/Hypercube.Math/Vectors/Vector4.Compatibility.cs b/Hypercube.Mathematics/Vectors/Vector4.Compatibility.cs similarity index 97% rename from Hypercube.Math/Vectors/Vector4.Compatibility.cs rename to Hypercube.Mathematics/Vectors/Vector4.Compatibility.cs index 416eeb2..0546475 100644 --- a/Hypercube.Math/Vectors/Vector4.Compatibility.cs +++ b/Hypercube.Mathematics/Vectors/Vector4.Compatibility.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; public readonly partial struct Vector4 { diff --git a/Hypercube.Math/Vectors/Vector4.cs b/Hypercube.Mathematics/Vectors/Vector4.cs similarity index 98% rename from Hypercube.Math/Vectors/Vector4.cs rename to Hypercube.Mathematics/Vectors/Vector4.cs index fa4ce96..4bf58cb 100644 --- a/Hypercube.Math/Vectors/Vector4.cs +++ b/Hypercube.Mathematics/Vectors/Vector4.cs @@ -1,8 +1,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Hypercube.Math.Extensions; +using Hypercube.Mathematics.Extensions; -namespace Hypercube.Math.Vectors; +namespace Hypercube.Mathematics.Vectors; [StructLayout(LayoutKind.Sequential)] public readonly partial struct Vector4 : IEquatable diff --git a/Hypercube.OpenGL/Shaders/ShaderProgram.cs b/Hypercube.OpenGL/Shaders/ShaderProgram.cs index c172748..298db1b 100644 --- a/Hypercube.OpenGL/Shaders/ShaderProgram.cs +++ b/Hypercube.OpenGL/Shaders/ShaderProgram.cs @@ -1,7 +1,7 @@ using System.Collections.Frozen; using Hypercube.Graphics.Shaders; -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; using Hypercube.OpenGL.Utilities.Helpers; using JetBrains.Annotations; using OpenToolkit.Graphics.OpenGL4; diff --git a/Hypercube.OpenGL/Utilities/Helpers/GLFWHelper.cs b/Hypercube.OpenGL/Utilities/Helpers/GLFWHelper.cs index c320f43..90e0caa 100644 --- a/Hypercube.OpenGL/Utilities/Helpers/GLFWHelper.cs +++ b/Hypercube.OpenGL/Utilities/Helpers/GLFWHelper.cs @@ -1,5 +1,5 @@ using System.Runtime.InteropServices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using OpenTK.Windowing.GraphicsLibraryFramework; namespace Hypercube.OpenGL.Utilities.Helpers; diff --git a/Hypercube.Shared/Animation/Procedural/IKFabric2D.cs b/Hypercube.Shared/Animation/Procedural/IKFabric2D.cs index 6b16899..8465e64 100644 --- a/Hypercube.Shared/Animation/Procedural/IKFabric2D.cs +++ b/Hypercube.Shared/Animation/Procedural/IKFabric2D.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Animation.Procedural; diff --git a/Hypercube.Shared/Animation/Procedural/Segment2D.cs b/Hypercube.Shared/Animation/Procedural/Segment2D.cs index 59a00fe..e55de10 100644 --- a/Hypercube.Shared/Animation/Procedural/Segment2D.cs +++ b/Hypercube.Shared/Animation/Procedural/Segment2D.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Animation.Procedural; diff --git a/Hypercube.Shared/Entities/Systems/Physics/PhysicsComponent.cs b/Hypercube.Shared/Entities/Systems/Physics/PhysicsComponent.cs index ee2ecab..8696799 100644 --- a/Hypercube.Shared/Entities/Systems/Physics/PhysicsComponent.cs +++ b/Hypercube.Shared/Entities/Systems/Physics/PhysicsComponent.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Entities.Realisation.Components; using Hypercube.Shared.Entities.Systems.Transform; using Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Entities/Systems/Transform/Coordinates/SceneCoordinates.cs b/Hypercube.Shared/Entities/Systems/Transform/Coordinates/SceneCoordinates.cs index f25fe8e..e99ecf0 100644 --- a/Hypercube.Shared/Entities/Systems/Transform/Coordinates/SceneCoordinates.cs +++ b/Hypercube.Shared/Entities/Systems/Transform/Coordinates/SceneCoordinates.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Scenes; namespace Hypercube.Shared.Entities.Systems.Transform.Coordinates; diff --git a/Hypercube.Shared/Entities/Systems/Transform/TransformComponent.cs b/Hypercube.Shared/Entities/Systems/Transform/TransformComponent.cs index a34a9d8..7c0a990 100644 --- a/Hypercube.Shared/Entities/Systems/Transform/TransformComponent.cs +++ b/Hypercube.Shared/Entities/Systems/Transform/TransformComponent.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Transforms; +using Hypercube.Mathematics.Transforms; using Hypercube.Shared.Entities.Realisation.Components; using Hypercube.Shared.Entities.Systems.Transform.Coordinates; using Hypercube.Shared.Scenes; diff --git a/Hypercube.Shared/Entities/Systems/Transform/TransformSystem.cs b/Hypercube.Shared/Entities/Systems/Transform/TransformSystem.cs index f43f4fe..47dcf81 100644 --- a/Hypercube.Shared/Entities/Systems/Transform/TransformSystem.cs +++ b/Hypercube.Shared/Entities/Systems/Transform/TransformSystem.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Entities.Realisation; using Hypercube.Shared.Entities.Realisation.Systems; diff --git a/Hypercube.Shared/Hypercube.Shared.csproj b/Hypercube.Shared/Hypercube.Shared.csproj index 5090586..15ea561 100644 --- a/Hypercube.Shared/Hypercube.Shared.csproj +++ b/Hypercube.Shared/Hypercube.Shared.csproj @@ -17,7 +17,7 @@ - + diff --git a/Hypercube.Shared/Physics/Chunk.cs b/Hypercube.Shared/Physics/Chunk.cs index 3215320..8475262 100644 --- a/Hypercube.Shared/Physics/Chunk.cs +++ b/Hypercube.Shared/Physics/Chunk.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/Collisions.cs b/Hypercube.Shared/Physics/Collisions.cs index f4d7bec..400dd9d 100644 --- a/Hypercube.Shared/Physics/Collisions.cs +++ b/Hypercube.Shared/Physics/Collisions.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/IBody.cs b/Hypercube.Shared/Physics/IBody.cs index 2bcc63d..803f67d 100644 --- a/Hypercube.Shared/Physics/IBody.cs +++ b/Hypercube.Shared/Physics/IBody.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/IShape.cs b/Hypercube.Shared/Physics/IShape.cs index b3ccf3b..79aaa8c 100644 --- a/Hypercube.Shared/Physics/IShape.cs +++ b/Hypercube.Shared/Physics/IShape.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/Manifold.cs b/Hypercube.Shared/Physics/Manifold.cs index 8b7ff9f..3704afc 100644 --- a/Hypercube.Shared/Physics/Manifold.cs +++ b/Hypercube.Shared/Physics/Manifold.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/Raycasting/RaycastResult.cs b/Hypercube.Shared/Physics/Raycasting/RaycastResult.cs index efc0c80..a56698e 100644 --- a/Hypercube.Shared/Physics/Raycasting/RaycastResult.cs +++ b/Hypercube.Shared/Physics/Raycasting/RaycastResult.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics.Raycasting; diff --git a/Hypercube.Shared/Physics/Shapes/CircleShape.cs b/Hypercube.Shared/Physics/Shapes/CircleShape.cs index d9d6561..3548883 100644 --- a/Hypercube.Shared/Physics/Shapes/CircleShape.cs +++ b/Hypercube.Shared/Physics/Shapes/CircleShape.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics.Shapes; diff --git a/Hypercube.Shared/Physics/Shapes/PolygonShape.cs b/Hypercube.Shared/Physics/Shapes/PolygonShape.cs index 49c6281..3c57275 100644 --- a/Hypercube.Shared/Physics/Shapes/PolygonShape.cs +++ b/Hypercube.Shared/Physics/Shapes/PolygonShape.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics.Shapes; diff --git a/Hypercube.Shared/Physics/Shapes/RectangleShape.cs b/Hypercube.Shared/Physics/Shapes/RectangleShape.cs index f9c9427..d50a554 100644 --- a/Hypercube.Shared/Physics/Shapes/RectangleShape.cs +++ b/Hypercube.Shared/Physics/Shapes/RectangleShape.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Shapes; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Shapes; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics.Shapes; diff --git a/Hypercube.Shared/Physics/Transform.cs b/Hypercube.Shared/Physics/Transform.cs index 10c174a..6ab2721 100644 --- a/Hypercube.Shared/Physics/Transform.cs +++ b/Hypercube.Shared/Physics/Transform.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; namespace Hypercube.Shared.Physics; diff --git a/Hypercube.Shared/Physics/World.cs b/Hypercube.Shared/Physics/World.cs index f7a2c47..b7bc5d7 100644 --- a/Hypercube.Shared/Physics/World.cs +++ b/Hypercube.Shared/Physics/World.cs @@ -1,5 +1,5 @@ using Hypercube.EventBus; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Vectors; using Hypercube.Shared.Physics.Events; using Hypercube.Shared.Scenes; diff --git a/Hypercube.UnitTests/Hypercube.UnitTests.csproj b/Hypercube.UnitTests/Hypercube.UnitTests.csproj index 5efbbef..9a09b33 100644 --- a/Hypercube.UnitTests/Hypercube.UnitTests.csproj +++ b/Hypercube.UnitTests/Hypercube.UnitTests.csproj @@ -19,7 +19,7 @@ - + diff --git a/Hypercube.UnitTests/Math/AngleTest.cs b/Hypercube.UnitTests/Math/AngleTest.cs index aeb16e9..ba4461e 100644 --- a/Hypercube.UnitTests/Math/AngleTest.cs +++ b/Hypercube.UnitTests/Math/AngleTest.cs @@ -1,5 +1,5 @@ -using Hypercube.Math; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Vectors; namespace Hypercube.UnitTests.Math; diff --git a/Hypercube.UnitTests/Math/FloatingPointTest.cs b/Hypercube.UnitTests/Math/FloatingPointTest.cs index a725b39..23bd4b2 100644 --- a/Hypercube.UnitTests/Math/FloatingPointTest.cs +++ b/Hypercube.UnitTests/Math/FloatingPointTest.cs @@ -1,4 +1,4 @@ -using Hypercube.Math.Extensions; +using Hypercube.Mathematics.Extensions; namespace Hypercube.UnitTests.Math; diff --git a/Hypercube.UnitTests/Math/Matrix4X4Test.cs b/Hypercube.UnitTests/Math/Matrix4X4Test.cs index a474fff..224358a 100644 --- a/Hypercube.UnitTests/Math/Matrix4X4Test.cs +++ b/Hypercube.UnitTests/Math/Matrix4X4Test.cs @@ -1,5 +1,5 @@ -using Hypercube.Math.Matrices; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics.Matrices; +using Hypercube.Mathematics.Vectors; namespace Hypercube.UnitTests.Math; diff --git a/Hypercube.UnitTests/Math/QuaternionTest.cs b/Hypercube.UnitTests/Math/QuaternionTest.cs index 48ef36d..073f966 100644 --- a/Hypercube.UnitTests/Math/QuaternionTest.cs +++ b/Hypercube.UnitTests/Math/QuaternionTest.cs @@ -1,5 +1,5 @@ -using Hypercube.Math; -using Hypercube.Math.Vectors; +using Hypercube.Mathematics; +using Hypercube.Mathematics.Vectors; namespace Hypercube.UnitTests.Math; diff --git a/Hypercube.sln b/Hypercube.sln index af6652f..804acde 100644 --- a/Hypercube.sln +++ b/Hypercube.sln @@ -4,7 +4,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypercube.Example.Client", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypercube.Client", "Hypercube.Client\Hypercube.Client.csproj", "{5CC9824F-8B41-4594-BA5A-46B97133AF6A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypercube.Math", "Hypercube.Math\Hypercube.Math.csproj", "{9B472CFF-DCB7-4AF6-8C07-F9ADD47CECBC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypercube.Mathematics", "Hypercube.Mathematics\Hypercube.Mathematics.csproj", "{9B472CFF-DCB7-4AF6-8C07-F9ADD47CECBC}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypercube.Shared", "Hypercube.Shared\Hypercube.Shared.csproj", "{ADF0DA0A-1FDE-4EBE-A516-9CA5FB01C62F}" EndProject