diff options
Diffstat (limited to 'src/game/game.h')
| -rw-r--r-- | src/game/game.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/game.h b/src/game/game.h index 2a35bf97..d3b491fc 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -12,6 +12,11 @@ inline vec2 get_direction(int angle) return vec2(cosf(a), sinf(a)); } +inline vec2 get_dir(float a) +{ + return vec2(cosf(a), sinf(a)); +} + inline float get_angle(vec2 dir) { float a = atan(dir.y/dir.x); |