https://github.com/orange-cpp/omath
Cross-platform modern general purpose math library written in C++23 that suitable for cheat/game development.
https://github.com/orange-cpp/omath
3d cheat cheat-development cpp23 game-development game-hacking gamedev iw math matrixes opengl opengl3 physics projectile-motion-simulation source-engine unity unity3d unreal-engine
Last synced: 1 day ago
JSON representation
Cross-platform modern general purpose math library written in C++23 that suitable for cheat/game development.
- Host: GitHub
- URL: https://github.com/orange-cpp/omath
- Owner: orange-cpp
- License: zlib
- Created: 2023-11-23T01:55:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-15T13:43:12.000Z (7 days ago)
- Last Synced: 2026-02-15T17:59:31.561Z (7 days ago)
- Topics: 3d, cheat, cheat-development, cpp23, game-development, game-hacking, gamedev, iw, math, matrixes, opengl, opengl3, physics, projectile-motion-simulation, source-engine, unity, unity3d, unreal-engine
- Language: C++
- Homepage: http://libomath.org
- Size: 12.5 MB
- Stars: 174
- Watchers: 4
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- fucking-awesome-cpp - OMath - Cross-platform modern general purpose math library written in C++23 that suitable for cheat/game development. [ZLIB] (Math)
- anything_about_game - omath - platform modern general purpose math library written in C++23 (Game-Math)
- awesome-cpp - OMath - Cross-platform modern general purpose math library written in C++23 that suitable for cheat/game development. [ZLIB] (Math)
README





[](https://www.codefactor.io/repository/github/orange-cpp/omath)

[](https://repology.org/project/orange-math/versions)

[](https://discord.gg/eDgdaWbqwZ)
[](https://t.me/orangennotes)
OMath is a 100% independent, constexpr template blazingly fast math library that doesn't have legacy C++ code.
It provides the latest features, is highly customizable, has all for cheat development, DirectX/OpenGL/Vulkan support, premade support for different game engines, much more constexpr stuff than in other libraries and more...
---
**[
Install
][INSTALL]**
**[
Examples
][EXAMPLES]**
**[
Documentation
][DOCUMENTATION]**
**[
Contribute
][CONTRIBUTING]**
**[
Donate
][SPONSOR]**
---
## Quick Example
```cpp
#include
using namespace omath;
// 3D vector operations
Vector3 a{1, 2, 3};
Vector3 b{4, 5, 6};
auto dot = a.dot(b); // 32.0
auto cross = a.cross(b); // (-3, 6, -3)
auto distance = a.distance_to(b); // ~5.196
auto normalized = a.normalized(); // Unit vector
// World-to-screen projection (Source Engine example)
using namespace omath::source_engine;
Camera camera(position, angles, viewport, fov, near_plane, far_plane);
if (auto screen = camera.world_to_screen(world_position)) {
// Draw at screen->x, screen->y
}
```
**[See more examples and tutorials][TUTORIALS]**
# Features
- **Efficiency**: Optimized for performance, ensuring quick computations using AVX2.
- **Versatility**: Includes a wide array of mathematical functions and algorithms.
- **Ease of Use**: Simplified interface for convenient integration into various projects.
- **Projectile Prediction**: Projectile prediction engine with O(N) algo complexity, that can power you projectile aim-bot.
- **3D Projection**: No need to find view-projection matrix anymore you can make your own projection pipeline.
- **Collision Detection**: Production ready code to handle collision detection by using simple interfaces.
- **No Additional Dependencies**: No additional dependencies need to use OMath except unit test execution
- **Ready for meta-programming**: Omath use templates for common types like Vectors, Matrixes etc, to handle all types!
- **Engine support**: Supports coordinate systems of **Source, Unity, Unreal, Frostbite, IWEngine, CryEngine and canonical OpenGL**.
- **Cross platform**: Supports Windows, MacOS and Linux.
- **Algorithms**: Has ability to scan for byte pattern with wildcards in ELF/Mach-O/PE files/modules, binary slices, works even with Wine apps.
- **Battle tested**: It's already used by some big players on the market like wraith.su and bluedream.ltd
# Gallery
[](https://youtu.be/lM_NJ1yCunw?si=-Qf5yzDcWbaxAXGQ)
![APEX Preview]
![BO2 Preview]
![CS2 Preview]
![TF2 Preview]
![OpenGL Preview]
## Documentation
- **[Getting Started Guide](http://libomath.org/getting_started/)** - Installation and first steps
- **[API Overview](http://libomath.org/api_overview/)** - Complete API reference
- **[Tutorials](http://libomath.org/tutorials/)** - Step-by-step guides
- **[FAQ](http://libomath.org/faq/)** - Common questions and answers
- **[Troubleshooting](http://libomath.org/troubleshooting/)** - Solutions to common issues
- **[Best Practices](http://libomath.org/best_practices/)** - Guidelines for effective usage
## Community & Support
- **Discord**: [Join our community](https://discord.gg/eDgdaWbqwZ)
- **Telegram**: [@orangennotes](https://t.me/orangennotes)
- **Issues**: [Report bugs or request features](https://github.com/orange-cpp/omath/issues)
- **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines
# Acknowledgments
- [All contributors](https://github.com/orange-cpp/omath/graphs/contributors)
[APEX Preview]: docs/images/showcase/apex.png
[BO2 Preview]: docs/images/showcase/cod_bo2.png
[CS2 Preview]: docs/images/showcase/cs2.jpeg
[TF2 Preview]: docs/images/showcase/tf2.jpg
[OpenGL Preview]: docs/images/showcase/opengl.png
[QUICKSTART]: docs/getting_started.md
[INSTALL]: INSTALL.md
[DOCUMENTATION]: http://libomath.org
[TUTORIALS]: docs/tutorials.md
[CONTRIBUTING]: CONTRIBUTING.md
[EXAMPLES]: examples
[SPONSOR]: https://boosty.to/orangecpp/purchase/3568644?ssource=DIRECT&share=subscription_link