summaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/entity.h b/src/entity.h
index 479f4e0..25ac435 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -37,14 +37,16 @@ struct Entity
};
void entity_accelerate(struct Entity *e, struct Vec2d *v);
-struct Vec2d vec2d_add(float x0, float y0, float x1, float y1);
+struct Vec2d vec2d_add(struct Vec2d v0, struct Vec2d v1);
+struct Vec2d vec2d_add_c(float x0, float y0, float x1, float y1);
struct Vec2d vec2d_al_to_xy(struct Vec2d v);
float vec2d_get_angle(float x, float y);
bool vec2d_equal(struct Vec2d v0, struct Vec2d v1);
float vec2d_get_length(float x, float y);
struct Vec2d vec2d_negate(struct Vec2d v);
struct Vec2d vec2d_normalize(float x, float y);
-struct Vec2d vec2d_scale(float x, float y, float s);
+struct Vec2d vec2d_scale(struct Vec2d v, float s);
+struct Vec2d vec2d_scale_c(float x, float y, float s);
struct Vec2d vec2d_xy_to_al(struct Vec2d v);
#endif