diff --git a/noise/basis/perlin.ipp b/noise/basis/perlin.ipp index f2a0fd09..9117007c 100644 --- a/noise/basis/perlin.ipp +++ b/noise/basis/perlin.ipp @@ -69,7 +69,7 @@ namespace util { namespace noise { namespace basis { auto p_int = p.template cast (); if (p.x < 0) p_int.x -= 1; if (p.y < 0) p_int.y -= 1; - auto p_rem = abs (p - p_int); + auto p_rem = p - p_int; // generate the corner positions auto p0 = p_int + util::vector<2,intmax_t> { 0, 0 }; diff --git a/noise/basis/value.ipp b/noise/basis/value.ipp index 122b0404..ccdc2c3e 100644 --- a/noise/basis/value.ipp +++ b/noise/basis/value.ipp @@ -66,7 +66,7 @@ namespace util { namespace noise { namespace basis { auto p_int = p.template cast (); if (p.x < 0) p_int.x -= 1; if (p.y < 0) p_int.y -= 1; - auto p_rem = abs (p - p_int); + auto p_rem = p - p_int; // generate the corner points auto p0 = p_int + util::vector<2,intmax_t> { 0, 0 }; diff --git a/noise/basis/worley.ipp b/noise/basis/worley.ipp index d9956049..28bcb649 100644 --- a/noise/basis/worley.ipp +++ b/noise/basis/worley.ipp @@ -69,7 +69,7 @@ namespace util { namespace noise { namespace basis { auto p_int = p.template cast (); if (p.x < 0) p_int.x -= 1; if (p.y < 0) p_int.y -= 1; - auto p_rem = abs (p - p_int).template as (); + auto p_rem = (p - p_int).template as (); // setup an array of distances constexpr size_t RADIUS = 1;