1
0
mirror of https://github.com/slendidev/smath.git synced 2026-03-16 18:16:50 +02:00

49 Commits

Author SHA1 Message Date
dedab14b28 docs: add issue templates, contributing file
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-15 17:21:34 +02:00
e063b10af5 docs: Ignore macros the user should not be aware of
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 09:16:30 +02:00
cf490494c3 Fix .gitignore and add build_docs.sh
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 08:35:40 +02:00
2719e1d746 ci: update docs workflow to use new build script
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 08:33:03 +02:00
d113c492c9 Try another approach on removing the header
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 08:31:55 +02:00
24c3769e22 Add logo to Doxygen documentation
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 08:27:02 +02:00
6471d48d35 Fix some unused variable warnings
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 03:09:02 +02:00
79dc2d43e6 ci: Try another approach to docs workflow
I hate CI.

Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 02:44:52 +02:00
cc08dd190c ci: add docs dir creation
Please work

Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 02:40:33 +02:00
87a12de2bf ci: add doxygen workflow
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 02:38:43 +02:00
6079705bb6 Add Doxygen documentation
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 02:35:04 +02:00
48eff7d784 Document SMATH_ANGLE_UNIT in smath.hpp's top comment
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 01:42:20 +02:00
224b924772 Add optional interop headers
Those headers are used for interoping with various popular C++
libraries. For now, those libraries are Eigen, GLM, HandmadeMath,
Raylib, and SFML. Some other ones may be added in the future.

Those are disabled by default, as most projects I would imagine would
not use them. But in case you need any of them for special reasons like
I did, they are there.

Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 01:34:35 +02:00
2a161e36ab Move smath.hpp to smath/smath.hpp
This is done in preparation for optional interop headers for different
libraries.

Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 00:40:20 +02:00
6f9e8814b1 ci: print build logs
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 00:17:19 +02:00
4f71b3ac90 Add .clang-format and format codebase
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 00:13:58 +02:00
01538457a5 Add interop API
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-12 00:13:58 +02:00
c4109f0ce3 bump cmake project version
Signed-off-by: Slendi <slendi@socopon.com>
2026-03-11 20:24:45 +02:00
3b9adb0ddc Update README with logo
Add logo
v1.0.0
2026-03-11 20:15:23 +02:00
889a42f9b5 Update README
Fix typo, add badges and add quick start section

Signed-off-by: Slendi <slendi@socopon.com>
2026-03-11 20:06:29 +02:00
8dc5ef8f24 Add helper Quaternion methods
Signed-off-by: Slendi <slendi@socopon.com>
2026-01-11 09:35:27 +02:00
0b685eb30b Fix more math
Signed-off-by: Slendi <slendi@socopon.com>
2026-01-10 16:15:49 +02:00
aa8e3b1637 Fixes
Signed-off-by: Slendi <slendi@socopon.com>
2026-01-10 15:33:04 +02:00
830c64b25a Add modules support
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-28 00:24:52 +02:00
a6fe9c2f2c Add const accessors to Quaternion
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-27 21:43:35 +02:00
75d5a197a9 Quick fix for deg/rad/turns functions
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-27 21:36:38 +02:00
d3511a9b52 Forgot to change something in the CI oops
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-12 01:07:10 +02:00
eed719674f Add CI
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-12 01:05:57 +02:00
5f0badfe64 Fix packaging for Nix
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-12 01:05:14 +02:00
1a42238a41 Formatting + new packing related functions
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-11 12:55:04 +02:00
a5d669235e Fix some math
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-07 00:11:21 +02:00
2d86e02038 Translate
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-06 23:01:49 +02:00
b5e0aabe37 Create unpacking function for vectors
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-06 21:37:46 +02:00
e32204db0c Add default case to shut compilers up
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 17:42:13 +02:00
37f085ee36 Quick matrix aliases
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 17:17:00 +02:00
13288eda01 Matrix stuff
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 16:30:30 +02:00
bf1c2ee0c8 Add Matrices
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-28 19:02:52 +02:00
f6e2bc01b1 Add quaternions
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-28 16:14:49 +02:00
271f04581c Quick style fixes
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-14 16:29:56 +02:00
26a0a8d046 Remove some methods if Vec doesn't use floats
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-14 16:17:57 +02:00
446ab9c679 Add angle conversion functions
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-14 16:03:17 +02:00
df49368e9a direnv
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-14 15:21:17 +02:00
9f70b6c72b Add more examples
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 22:47:31 +03:00
dfbbd03282 Fixup
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 21:36:04 +03:00
e457d0f362 Quick and dirty install target
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 21:33:29 +03:00
34ce572098 Add tests
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 20:17:43 +03:00
dfb8981810 Clean-up
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 19:54:52 +03:00
6467461b3b Package for Nix
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 19:37:31 +03:00
c2f44d2bb7 Initial commit
Signed-off-by: Slendi <slendi@socopon.com>
2025-08-24 19:20:40 +03:00