Commit graph

30 commits

Author SHA1 Message Date
b3cb60371e Tweak vector & quaternion slerp 2026-04-14 21:04:56 +03:00
005008b720 Find Boost in config mode 2026-04-06 23:04:01 +03:00
2f781525d7 Implement math::concat for arbitrary types, not just vectors 2026-02-03 23:45:00 +03:00
0e813c3307 Fix compilation on gcc-15: int template arguments can't be implicitly casted to size_t 2026-01-25 14:21:13 +03:00
2549d248a5 Improve matrix norms computation & add linf_norm 2025-12-04 18:11:32 +03:00
8832700e25 Optimize math::length(vector) to prevent allocations for runtime-sized vectors 2025-12-04 18:11:11 +03:00
a5acb9534b Big math::vector,point,matrix refactor: fully support dynamic (runtime) size in basic operations 2025-12-04 17:22:32 +03:00
a8e08bf6d3 Remove dynamic-sized storage from math::box 2025-12-04 17:21:57 +03:00
4b314d78c4 Make math::matrix::values() return util::span 2025-12-03 15:24:48 +03:00
774620c673 Change math::matrix storage type in preparation for dynamic-sized matrices 2025-10-25 16:12:38 +03:00
17d857ecf2 Use util::array as the storage for math types with dynamic size 2025-10-25 15:20:59 +03:00
78e9731d8d Fix math library std::formatters & make them use format rules derived from base scalar type 2025-10-18 15:27:39 +03:00
7300679f56 Properly initialize math::interval<util::fixed_point> 2025-09-14 17:22:10 +03:00
7beba986ae Add math::cast(ray) 2025-09-14 00:02:28 +03:00
a42d025ffb libs/math fixes in case scalar type isn't implicitly constructible from int 2025-09-14 00:02:19 +03:00
754b279b1a Optimize math::smootherstep somewhat 2025-09-07 14:00:45 +03:00
08f62bdaf7 Rewrite math::angle_difference without trigonometry 2025-09-07 14:00:25 +03:00
3bb8bd36f3 Add math::sqrt(dual) 2025-09-07 13:59:16 +03:00
78ea54ac2d Add math::dual weak comparison operators & some transcendental functions 2025-08-31 14:46:20 +03:00
2cce0082cf Fix math::smooth(er)step in case the type isn't implicitly constructible from integers 2025-08-31 14:45:52 +03:00
c3c8446431 Make default-initialized math::trs the identity 2025-07-10 02:13:02 +03:00
a7cbe69712 Add math::trs class & use it in gltf animations 2025-07-09 21:02:22 +03:00
57f9f7331c Add std::format formatters for basic math types 2025-04-04 21:07:19 +03:00
4f4e86ce4f Add math::inverse_smoothstep 2025-02-23 13:56:13 +03:00
4c16594b3f Use pi casted to appropriate type instead of implicit conversion to double in math/math.hpp 2025-02-23 11:46:43 +03:00
b01c594cba Add math::fmod that works for negative inputs 2025-01-30 12:37:48 +03:00
adcf761243 Support dynamic size in math::vector 2025-01-26 19:03:33 +03:00
6fc476f1f0 Support building without Boost.Stacktrace 2025-01-26 14:45:43 +03:00
2c3565df61 32-bit compilation fixes:
* Use uint64_t instead of size_t as hash return value

 * Expect alignof(uint64_t) <= 8 instead of == 8
2025-01-25 20:35:37 +03:00
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00