From a82f70c0281dc5179413a8ba59cebc502d3a45b3 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 11 Oct 2021 10:00:33 +0200 Subject: [PATCH] Remove vec_mag in favor of vec_length (Fixes #1256) --- src/math/vec.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/math/vec.h b/src/math/vec.h index 057bb91b..c631501f 100644 --- a/src/math/vec.h +++ b/src/math/vec.h @@ -58,12 +58,6 @@ float vec_arg(Vec2f v) return atan2f(v.y, v.x); } -static inline -float vec_mag(Vec2f v) -{ - return sqrtf(v.x * v.x + v.y * v.y); -} - static inline Vec2f vec_sum(Vec2f v1, Vec2f v2) {