This commit is contained in:
luc 2019-04-11 03:17:26 +02:00
parent 84621fa281
commit ae258447a5
13 changed files with 12 additions and 0 deletions

0
COPYING.LESSER Normal file → Executable file
View File

0
Makefile Normal file → Executable file
View File

0
exemple/exemple_geometry.c Normal file → Executable file
View File

0
exemple/exemple_matrix.c Normal file → Executable file
View File

0
sweet.h Normal file → Executable file
View File

0
sweet_geometry.c Normal file → Executable file
View File

0
sweet_geometry.h Normal file → Executable file
View File

9
sweet_macro.h Normal file → Executable file
View File

@ -31,5 +31,14 @@
#define mat3_new(...) _OVERLOAD_3_(__VA_ARGS__, mat3_new_3v, mat3_new_2v, mat3_new_m4, NULL)(__VA_ARGS__)
#define mat4_new(...) _OVERLOAD_4_(__VA_ARGS__, mat4_new_4v, mat4_new_3v, mat4_new_2v, mat4_new_m4, NULL)(__VA_ARGS__)
#define swap(a, b, type) \
{\
type t;\
t = a;\
a = b;\
b = t;\
\
}
#endif

0
sweet_math.c Normal file → Executable file
View File

3
sweet_math.h Normal file → Executable file
View File

@ -55,6 +55,9 @@
#define float_approx_zero(a, epsilon) \
(a <= (epsilon) && a >= (epsilon))
#define max(a, b) (a >= b ? a : b)
#define min(a, b) (a <= b ? a : b)
/* Vector */
vec2 vec2_zero();

0
sweet_matrix.c Normal file → Executable file
View File

0
sweet_matrix.h Normal file → Executable file
View File

0
sweet_types.h Normal file → Executable file
View File