From e80e22bd5bd375397e29a0b0d4921b36c0971cb0 Mon Sep 17 00:00:00 2001 From: Vladislav Alpatov Date: Sat, 1 Mar 2025 21:46:29 +0300 Subject: [PATCH] added some files --- CMakeLists.txt | 5 +++++ README.md | 4 ++-- examples/CMakeLists.txt | 0 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 examples/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 406feb4..7d5e8b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ option(OMATH_THREAT_WARNING_AS_ERROR "Set highest level of warnings and force co option(OMATH_BUILD_AS_SHARED_LIBRARY "Build Omath as .so or .dll" OFF) option(OMATH_USE_AVX2 "Omath will use AVX2 to boost performance" ON) option(OMATH_IMGUI_INTEGRATION "Omath will define method to convert omath types to imgui types" OFF) +option(OMATH_BUILD_EXAMPLES "Build example projects with you can learn & play" ON) if (OMATH_BUILD_AS_SHARED_LIBRARY) add_library(omath SHARED source/Vector3.cpp) @@ -49,6 +50,10 @@ if(OMATH_BUILD_TESTS) add_subdirectory(tests) endif() +if (OMATH_BUILD_EXAMPLES) + add_subdirectory(examples) +endif() + if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND OMATH_THREAT_WARNING_AS_ERROR) target_compile_options(omath PRIVATE /W4 /WX) elseif(OMATH_THREAT_WARNING_AS_ERROR) diff --git a/README.md b/README.md index c4d896a..0058d79 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,14 @@ Oranges's Math Library (omath) is a comprehensive, open-source library aimed at providing efficient, reliable, and versatile mathematical functions and algorithms. Developed primarily in C++, this library is designed to cater to a wide range of mathematical operations essential in scientific computing, engineering, and academic research. ## 👁‍🗨 Features -- **Efficiency**: Optimized for performance, ensuring quick computations. +- **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! ## ⏬ Getting Started ### Prerequisites - C++ Compiler diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..e69de29