You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merijn Hendriks edited this page May 22, 2018
·
5 revisions
About
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.
Changes
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
Compile
For GCC, it is known to compile with the following compiler flags: -lm -Wall -Wextra -std=c89 -Wpedantic -Werror