Skip to content

Commit

Permalink
Fix invalid namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe committed Dec 21, 2023
1 parent 820557c commit def5ae1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
14 changes: 7 additions & 7 deletions glm/gtc/noise.inl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf

namespace glm{
namespace gtc
namespace detail
{
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER vec<4, T, Q> grad4(T const& j, vec<4, T, Q> const& ip)
Expand All @@ -17,7 +17,7 @@ namespace gtc
pXYZ = pXYZ + (vec<3, T, Q>(s) * T(2) - T(1)) * s.w;
return vec<4, T, Q>(pXYZ, pW);
}
}//namespace gtc
}//namespace detail

// Classic Perlin noise
template<typename T, qualifier Q>
Expand Down Expand Up @@ -781,11 +781,11 @@ namespace gtc
// 7*7*6 = 294, which is close to the ring size 17*17 = 289.
vec<4, T, Q> ip = vec<4, T, Q>(T(1) / T(294), T(1) / T(49), T(1) / T(7), T(0));

vec<4, T, Q> p0 = gtc::grad4(j0, ip);
vec<4, T, Q> p1 = gtc::grad4(j1.x, ip);
vec<4, T, Q> p2 = gtc::grad4(j1.y, ip);
vec<4, T, Q> p3 = gtc::grad4(j1.z, ip);
vec<4, T, Q> p4 = gtc::grad4(j1.w, ip);
vec<4, T, Q> p0 = detail::grad4(j0, ip);
vec<4, T, Q> p1 = detail::grad4(j1.x, ip);
vec<4, T, Q> p2 = detail::grad4(j1.y, ip);
vec<4, T, Q> p3 = detail::grad4(j1.z, ip);
vec<4, T, Q> p4 = detail::grad4(j1.w, ip);

// Normalise gradients
vec<4, T, Q> norm = detail::taylorInvSqrt(vec<4, T, Q>(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3)));
Expand Down
4 changes: 1 addition & 3 deletions glm/gtx/number_precision.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
# endif
#endif

namespace glm{
namespace gtx
namespace glm
{
/////////////////////////////
// Unsigned int vector types
Expand Down Expand Up @@ -55,7 +54,6 @@ namespace gtx
typedef f64 f64mat1x1; //!< \brief Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)

/// @}
}//namespace gtx
}//namespace glm

#include "number_precision.inl"
4 changes: 1 addition & 3 deletions glm/gtx/optimum_pow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
# endif
#endif

namespace glm{
namespace gtx
namespace glm
{
/// @addtogroup gtx_optimum_pow
/// @{
Expand All @@ -48,7 +47,6 @@ namespace gtx
GLM_FUNC_DECL genType pow4(genType const& x);

/// @}
}//namespace gtx
}//namespace glm

#include "optimum_pow.inl"

0 comments on commit def5ae1

Please sign in to comment.