From e849a07762a2feb3f124a08d50adeed52f085d5b Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 11 Jul 2020 00:29:49 +0800 Subject: =?UTF-8?q?*=E5=8A=A0internal=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/math/vec2.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/math/vec2.c') 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 -- cgit v1.1-26-g67d0