diff options
Diffstat (limited to 'src/math/vec2.c')
| -rw-r--r-- | src/math/vec2.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/src/math/vec2.c b/src/math/vec2.c index 152f965..dc964e7 100644 --- a/src/math/vec2.c +++ b/src/math/vec2.c @@ -4,35 +4,35 @@  Vec2 vec2zero = { 0, 0}; -void vec2_scale(Vec2* v, float k, Vec2* out) { +void internal_vec2_scale(Vec2* v, float k, Vec2* out) {  	ssr_assert(v && out);  	out->x = v->x * k;  	out->y = v->y * k;  } -void vec2_plus(Vec2* v1, Vec2* v2, Vec2* out) { +void internal_vec2_plus(Vec2* v1, Vec2* v2, Vec2* out) {  	ssr_assert(v1 && v2 && out);  	out->x = v1->x + v2->x;  	out->y = v1->y + v2->y;  } -void vec2_offset(Vec2* v, float offset, Vec2* out) { +void internal_vec2_offset(Vec2* v, float offset, Vec2* out) {  	ssr_assert(v && out);  	out->x = v->x + offset;   	out->y = v->y + offset;  } -float vec2_dot(Vec2* v1, Vec2* v2) { +float internal_vec2_dot(Vec2* v1, Vec2* v2) {  	ssr_assert(v1 && v2);  	float d = v1->x * v2->x + v1->y * v2->y;  	return d;   } -void vec2_tostring(Vec2* v, char buf[]) { +void internal_vec2_tostring(Vec2* v, char buf[]) {  	sprintf(buf, "%8.3f %8.3f", v->x, v->y);  } -void vec2_print(Vec2* v) { -	vec2_tostring(v, printbuffer); +void internal_vec2_print(Vec2* v) { +	internal_vec2_tostring(v, printbuffer);  	printf("%s", printbuffer);  }
\ No newline at end of file | 
