diff --git a/noise/fractal/rmf.hpp b/noise/fractal/rmf.hpp index 1ca98626..496ba92a 100644 --- a/noise/fractal/rmf.hpp +++ b/noise/fractal/rmf.hpp @@ -57,6 +57,9 @@ namespace util { namespace noise { namespace fractal { T operator() (util::point<2,T>) const; + T offset (void) const; + T offset (T); + private: T m_offset; }; diff --git a/noise/fractal/rmf.ipp b/noise/fractal/rmf.ipp index ee1890e4..99d24c8f 100644 --- a/noise/fractal/rmf.ipp +++ b/noise/fractal/rmf.ipp @@ -98,4 +98,22 @@ namespace util { namespace noise { namespace fractal { return result; } + + + /////////////////////////////////////////////////////////////////////////// + template + T + rmf::offset (void) const + { + return m_offset; + } + + + //------------------------------------------------------------------------- + template + T + rmf::offset (T _offset) + { + return m_offset = _offset; + } } } }