From 6966908022e36df9fb4c5e2233603a6fef18e97d Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 28 Mar 2018 14:17:47 +0200 Subject: Pie menu; start redoing shooting mechanics. --- 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 e0b8f1b..dc077e1 100644 --- a/src/math.hpp +++ b/src/math.hpp @@ -254,6 +254,11 @@ public: return *this / len(); } + static vec_t rad(float t) + { + return vec_t(cos(t), sin(t)); + } + // Compatibility with SFML template -- cgit