]> git.lizzy.rs Git - nothing.git/commitdiff
Remove vec_mag in favor of vec_length (Fixes #1256) remove_vec_mag
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 11 Oct 2021 08:00:33 +0000 (10:00 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 11 Oct 2021 08:00:33 +0000 (10:00 +0200)
src/math/vec.h

index 057bb91bddcf80cad6fa815e5ba8735ac607d42c..c631501f6347f330fbc8e6eedc257263e4dd7ed2 100644 (file)
@@ -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)
 {