Skip to content
/ math Public

➕ ➖ ✖️ ➗ A lightweight, dependency-free and header only C++ mathematics library.

License

Notifications You must be signed in to change notification settings

madureira/math

Repository files navigation

math

A lightweight, dependency-free and header only C++ mathematics library.

circleci codecov language

How to use

You need just to add the include directory to your project's include path.

#include <math/vec2.h>
#include <math/vec3.h>
#include <math/vec4.h>
#include <math/mat4.h>
#include <math/funcs.h>

math::vec2 coordinates(10.0f, 15.0f);
coordinates.add(math::vec2(20.0f, 30.0f));

math::vec4 position(coordinates + math::vec2(1.0f, 2.0f));

float radians = math::funcs::toRadians(45.0f);

Test

Linux

make test

Windows

Open the solution math.sln on Visual Studio IDE 2019 to run all unit tests.

About

➕ ➖ ✖️ ➗ A lightweight, dependency-free and header only C++ mathematics library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages