Skip to content

Useful math functions, designed for generative art

License

Notifications You must be signed in to change notification settings

CoolLibs/smart

Repository files navigation

smart: Simple Maths for Art

A collection of useful math functions like linear interpolation, clamping, and a modulo that respects the only sensible convention for negative numbers.

Including

To add this library to your project, simply add these two lines to your CMakeLists.txt:

add_subdirectory(path/to/smart)
target_link_libraries(${PROJECT_NAME} PRIVATE smart::smart)

Then include it as:

#include <smart/smart.hpp>

Running the tests

Simply use "tests/CMakeLists.txt" to generate a project, then run it.
If you are using VSCode and the CMake extension, this project already contains a .vscode/settings.json that will use the right CMakeLists.txt automatically.

About

Useful math functions, designed for generative art

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published