From a62ac36a7e401b39d760237778623f5a2b13f91f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 16 Dec 2017 15:32:44 +0100 Subject: Distort the tile grid when rendering. --- src/math.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/math.hpp') diff --git a/src/math.hpp b/src/math.hpp index 13eb36a..5e117fd 100644 --- a/src/math.hpp +++ b/src/math.hpp @@ -216,6 +216,11 @@ public: return r; } + vec_t wrap(void) + { + return *this - this->floor(); + } + T len(void) { return std::sqrt(*this * *this); -- cgit