Commit Graph

15 Commits

Author SHA1 Message Date
67e7582d63 Add line, plane, ray and segments, split math unit test
Added some basic geometric primitives such as planes, rays, segments
and lines (plus some extra functions like xProject, xBarycentric, Lerpf),
as well as some intersection tests between them.

Additionally, I split massive math test into smaller ones and tweaked
unit test library (testing no longer stops after first failure).
2025-02-24 09:37:22 +03:00
be16daaecf Move planned features to separate file 2025-02-04 08:05:07 +03:00
7a7134a2f5 Fix function documentation, add missing function 2025-02-03 15:18:57 +03:00
c34a24c2a4 Fix naming in CMakeLists.txt 2025-02-03 10:56:40 +03:00
f86f1f4f74 Fix function declaration, extend math test 2025-02-03 08:26:10 +03:00
3e6e7a9b86 Add script for running calculating coverage 2025-02-02 22:51:57 +03:00
d917eaa479 Fix file and directory permissions 2025-02-02 22:51:28 +03:00
586a9ace21 Change file naming
This is a follow-up to previous commit.
2025-02-02 21:40:31 +03:00
c89cf8f316 Change code and naming style, fix several bugs, removed math types.
After a while I felt that putting underscores between words was not the
best solution, so I changed the underscores to capital letters.

Fixed consistency bug between POSIX/Win32 platform in BH_FileOpen.

Removed definitions for math types (vector, matrix, etc.) due to
potential aliasing issues.
2025-02-02 21:13:34 +03:00
8d73a9b473 Fix asan profile, add script for running tests
Linking against static asan library was a mistake. Now this should
work better for other compilers. Also added script for running all tests
under different profiles.
2025-01-29 22:41:39 +03:00
6ede63e18f Add Asan profile, fix multiple bugs.
Added Asan profile to help catch and fix various bugs (and indeed, there
were few of them).

Additionally, fixed bhunit macro to process arguments only once.
2025-01-29 09:19:34 +03:00
47c21a2035 Refactor math functions, add unit tests
After some testing, I decided to ditch the DirectX approach of writing
math functions.

Additionally, I added unit tests (with reference wxMaxima calculations)
for most math functions and fixed several bugs along the way.
2025-01-29 09:14:58 +03:00
ab27004af6 Document existing math methods. 2025-01-18 21:12:42 +03:00
881ffc87f9 Add readme and license file
Readme file contains implemented and future features.
License file is a license file.
2025-01-18 18:48:40 +03:00
453843f51a Initial commit 2025-01-18 17:24:36 +03:00