Nmu
neg4n's mathematics utilities
Install / Use
/learn @neg4n/NmuREADME
nmu
<sub> neg4n's math utilities, a C++17 header-only, dependency free and multiplatform set of mathematics utilities and definitions. </sub>In order to use it, add this repository to your project
as git submodule
and add this line to your CMakeLists.txt:
include_directories("nmu/src")
then simply #include <nmu.hpp> 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 speech
Feel free to contribute and do not hesitate to contact
with me through e-mail: i@thiocod.in
if there are any questions/problems.
Written under MIT License
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
