refactor: header file for every module
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef ENGINE_VECTOR_H
|
||||
#define ENGINE_VECTOR_H
|
||||
|
||||
#include <raylib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
Vector2 *data;
|
||||
size_t count;
|
||||
} Vector2Array;
|
||||
|
||||
Vector2 GetDirectionBetweenTwoVectors(Vector2 vec1, Vector2 vec2);
|
||||
float GetDistanceBetweenTwoVectors(Vector2 vec1, Vector2 vec2);
|
||||
bool IsVectorZero(Vector2 v);
|
||||
Vector2 GetRandomVector(const Rectangle bounds);
|
||||
Vector2 RotationToVector2(float rotation);
|
||||
float Vector2ToRotation(Vector2 vec);
|
||||
float Cross2D(Vector2 a, Vector2 b);
|
||||
void ApplyCollisionSteer(float *rotation, float side, float deltaTime);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user