This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
#ifndef CURTLE_VECTOR_H
|
||||
#define CURTLE_VECTOR_H
|
||||
|
||||
struct vec2
|
||||
{
|
||||
double x;
|
||||
double y;
|
||||
struct vec2 {
|
||||
float x;
|
||||
float y;
|
||||
};
|
||||
|
||||
struct vec3 {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
};
|
||||
|
||||
struct vec2 vec2_add(struct vec2 a, struct vec2 b);
|
||||
|
||||
struct vec2 vec2_sub(struct vec2 a, struct vec2 b);
|
||||
|
||||
float vec2_dot(struct vec2 a, struct vec2 b);
|
||||
|
||||
float vec2_det(struct vec2 a, struct vec2 b);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user