imath

Library for 2D/3D vector, matrix, and math operations in C++.

brewmacoslinux
Try with needOr install directly
Source

About

Library of 2D and 3D vector, matrix, and math operations

Examples

link imath library into C++ project for vector math$ clang++ -I$(brew --prefix imath)/include myprogram.cpp -L$(brew --prefix imath)/lib -lImath -o myprogram
check imath version installed$ brew info imath
use imath in cmake project$ echo 'find_package(Imath REQUIRED)' >> CMakeLists.txt && echo 'target_link_libraries(myapp Imath::Imath)' >> CMakeLists.txt
compile 3D graphics program with matrix operations$ g++ -I$(brew --prefix imath)/include graphics.cpp -L$(brew --prefix imath)/lib -lImath -o graphics_app
verify imath headers are available$ ls $(brew --prefix imath)/include/Imath/