Update to non pointers and not working gravit
This commit is contained in:
12 files changed
+94
-100
No files matched your search
+21
@@ -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_
|
||||
Reference in new issue
Block a user