2026-04-08 15:34:10 +03:00
2026-03-21 06:32:05 +03:00
2026-03-25 03:14:22 +03:00
2026-02-12 23:13:37 +03:00
2026-03-02 19:40:37 +03:00
2026-03-21 06:11:20 +03:00
2026-04-08 15:34:10 +03:00
2026-03-28 14:22:36 +03:00
2026-02-20 08:52:26 +03:00
fix
2026-03-19 20:27:25 +03:00
2026-03-24 05:28:01 +03:00
2026-03-28 14:22:36 +03:00
2026-03-16 01:54:45 +03:00
2024-11-27 15:35:30 +03:00
2026-02-15 16:43:08 +03:00
2026-02-14 20:55:48 +03:00
2026-03-08 12:55:35 +03:00
2026-03-10 19:00:36 +03:00
2026-03-10 15:57:22 +03:00
2026-02-23 06:45:43 +03:00
2026-04-03 20:59:34 +03:00
2026-03-19 15:24:35 +03:00
2026-03-21 06:05:29 +03:00
2026-01-17 21:35:34 +03:00
2026-01-30 05:13:27 +03:00
2025-09-04 20:35:04 +03:00
2026-03-13 21:28:16 +03:00
2026-02-20 09:07:33 +03:00
2026-01-22 08:53:23 +03:00

banner

GitHub License GitHub contributors GitHub top language GitHub repo size CodeFactor GitHub Actions Workflow Status Vcpkg package Conan Center GitHub forks discord badge telegram badge

OMath is a 100% independent, constexpr template blazingly fast math/physics/games/mods/cheats development framework 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

Examples

Documentation

Contribute

Donate



Quick Example

#include <omath/omath.hpp>

using namespace omath;

// 3D vector operations
Vector3<float> a{1, 2, 3};
Vector3<float> 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

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.
  • Scripting: Supports to make scripts in Lua out of box.
  • Handy: Allow to design wall hacks in modern jetpack compose like way.
  • Battle tested: It's already used by some big players on the market like wraith.su and bluedream.ltd

Gallery


Youtube Video


APEX Preview


BO2 Preview


CS2 Preview


TF2 Preview


OpenGL Preview



Documentation

Community & Support

Acknowledgments

Languages
C++ 93.6%
Lua 3%
CMake 2.4%
Shell 1%