diff --git a/libs/pcg/include/psemek/pcg/fractal.hpp b/libs/pcg/include/psemek/pcg/fractal.hpp index 446f8732..b112880c 100644 --- a/libs/pcg/include/psemek/pcg/fractal.hpp +++ b/libs/pcg/include/psemek/pcg/fractal.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -29,6 +30,11 @@ namespace psemek::pcg value_type operator()(geom::vector const & p) const; + value_type operator()(geom::point const & p) const + { + return (*this)(p - p.zero()); + } + private: std::vector octaves; std::vector weights;