summaryrefslogtreecommitdiff
path: root/src/math/vec2.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-12-08 00:23:50 +0800
committerchai <chaifix@163.com>2019-12-08 00:23:50 +0800
commit3df29dc54c509c983dc8a0e23eab4160d48144f2 (patch)
treed8c5287c9979e731e373e7a1481aadd79d3f071b /src/math/vec2.c
parent8e684dc0c76708e3174f005aebcaabc144b85500 (diff)
+clipping
Diffstat (limited to 'src/math/vec2.c')
-rw-r--r--src/math/vec2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/vec2.c b/src/math/vec2.c
index 86192dc..152f965 100644
--- a/src/math/vec2.c
+++ b/src/math/vec2.c
@@ -2,6 +2,8 @@
#include "../util/assert.h"
#include "../core/mem.h"
+Vec2 vec2zero = { 0, 0};
+
void vec2_scale(Vec2* v, float k, Vec2* out) {
ssr_assert(v && out);
out->x = v->x * k;