Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neg4n/nmu
neg4n's mathematics utilities
https://github.com/neg4n/nmu
cpp cpp17 header-only lightweight mathematics vector vector2d vector3d
Last synced: 16 days ago
JSON representation
neg4n's mathematics utilities
- Host: GitHub
- URL: https://github.com/neg4n/nmu
- Owner: neg4n
- License: mit
- Created: 2020-03-09T01:14:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T22:40:18.000Z (over 4 years ago)
- Last Synced: 2025-01-03T18:56:07.511Z (18 days ago)
- Topics: cpp, cpp17, header-only, lightweight, mathematics, vector, vector2d, vector3d
- Language: C++
- Homepage:
- Size: 39.1 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nmu
neg4n's math utilities, a C++17 header-only, dependency free and multiplatform
set of mathematics utilities and definitions.In order to use it, add this repository to your project
as [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
and add this line to your `CMakeLists.txt`:
```cmake
include_directories("nmu/src")
```
then simply `#include ` in your code.Documentation will be available soon.
### Compilers support
| Name | Tested | Version |
|----------|--------|---------|
| MSVC | ✅ | 1924 |
| g++ |✅ | 7.5.0 |
| clang | ❌ | none |#### Features
- Two-dimensional (2D) vectors with all arithmetic types support.
- Three-dimensional (3D) vectors with all arithmetic types support.
- Radians to degrees and degrees to radians conversion.
- Colors (8bit per channel) support with conversions between various notations
- From/to float
- From/To float with alpha
- From/to integer
- To integer with alpha // TODO: Support from conversion
- Math constants.*more soon...*
#### Ending speechFeel free to contribute and do not hesitate to contact
with me through e-mail: *[email protected]*
if there are any questions/problems.Written under [MIT License](https://en.wikipedia.org/wiki/MIT_License)