Update to non pointers and not working gravit

This commit is contained in:
h3cx committed 2026-09-30 22:23:04 +02:00
1 parent 397d818c62
commit aa4f0dfe52
12 files changed
+94 -100

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#pragma once
#ifndef VEC_UTILS_H_
#define VEC_UTILS_H_
#include <math.h>
#include <raylib.h>
static const Vector2 NULL_VEC2 = {0, 0};
bool vec2_is_null(Vector2 v) ;
Vector2 transform_to_center(Vector2 v);
Vector2 vec2_sum(const Vector2 a, const Vector2 b);
float vec2_len(Vector2 v) ;
Vector2 vec2_normalize(const Vector2 v) ;
Vector2 vec2_scale(const Vector2 normal, const float len) ;
float vec2_dot(const Vector2 a, const Vector2 b) ;
Vector2 vec2_diff(const Vector2 a, const Vector2 b) ;
#endif // VEC_UTILS_H_