Vector utilities for 2, 3, and 4 element vectors, all inline - by Jean-Francois Doue, Paul S. Heckbert, and J. Nagle (1993).
npm install algebra3.cxxVector utilities for 2, 3, and 4 element vectors, all inline -
by Jean-Francois Doue, Paul S. Heckbert, and J. Nagle (1993).
sh
$ npm i algebra3.cxx
`
And then include algebra3.h as follows:
`cxx
// main.cxx
#include "node_modules/algebra3.cxx/algebra3.h"
int main() { / ... / }
`
And then compile with clang++ or g++ as usual.
`bash
$ clang++ main.cxx # or, use g++
$ g++ main.cxx
`
You may also use a simpler approach:
`cxx
// main.cxx
#include
int main() { / ... / }
`
If you add the path node_modules/algebra3.cxx to your compiler's include paths.
`bash
$ clang++ -I./node_modules/algebra3.cxx main.cxx # or, use g++
$ g++ -I./node_modules/algebra3.cxx main.cxx
``