diff options
-rw-r--r-- | lib/maths.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/maths.h b/lib/maths.h index d4bcd16..b95b706 100644 --- a/lib/maths.h +++ b/lib/maths.h @@ -132,6 +132,12 @@ operator%(const glm::vec3 & p, const glm::mat4 & mutation) return p2 / p2.w; } +inline glm::vec3 +operator%=(glm::vec3 & p, const glm::mat4 & mutation) +{ + return p = p % mutation; +} + constexpr inline float arc_length(const Arc & arc) { |