forked from datenwolf/linmath.h
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Merijn Hendriks edited this page May 22, 2018
·
5 revisions
automata-math is an upgraded version of linmath.h, which is compatible with the ANSI-C standard and C++. It might not be fast, but it's small and maintainable than linmath.h. It can also be used as an alternative for GLM.
Since the original linmath.h was written against the C99 standard, it isn't compatible with ANSI-C.
Besides, I found some useful functions to be missing. Therefore, I decided to port linmath.h to ANSI-C.
- Split header file into header and source
- Rewrote code to be compatible with ANSI-C and C++
- Renamed various functions and parameters for concistency
- Added vec(n)_dot(vec(n) a, vec(n) b) function
For GCC, it is known to compile with the following compiler flags:
-lm -Wall -Wextra -std=c89 -Wpedantic -Werror