Skip to content

Commit

Permalink
gui/math: some library friendly namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Jan 10, 2025
1 parent cc22425 commit fcdf8e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/agui/math/Matrix3x3.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

using std::array;

using agui::math::Math;
using agui::math::Vector2;

/**
* Matrix3x3 class representing matrix3x3 mathematical structure and operations for 2d space
* @author Andreas Drewke
Expand Down
5 changes: 0 additions & 5 deletions src/agui/math/Matrix4x4.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

using std::array;

using agui::math::Math;
using agui::math::Matrix4x4;
using agui::math::Vector3;
using agui::math::Vector4;

/**
* Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space
* @author Andreas Drewke, Song Ho Ahn <[email protected]>
Expand Down
4 changes: 0 additions & 4 deletions src/agui/math/Vector2.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
#include <agui/agui.h>
#include <agui/math/fwd-agui.h>
#include <agui/math/Math.h>
#include <agui/utilities/Float.h>

using std::array;

using agui::math::Math;
using agui::utilities::Float;

/**
* Vector2 class representing vector2 mathematical structure and operations with x, y components
* @author Andreas Drewke
Expand Down
8 changes: 6 additions & 2 deletions src/agui/math/Vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@

using std::array;

using agui::math::Math;
using agui::utilities::Float;
// namespaces
namespace agui {
namespace math {
using ::agui::utilities::Float;
}
}

/**
* Vector3 class representing vector3 mathematical structure and operations with x, y, z components
Expand Down
4 changes: 0 additions & 4 deletions src/agui/math/Vector4.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

using std::array;

using agui::math::Math;
using agui::math::Vector3;
using agui::utilities::Float;

/**
* Vector4 class representing vector4 mathematical structure and operations with x, y, z, w components
* @author Andreas Drewke
Expand Down

0 comments on commit fcdf8e4

Please sign in to comment.