Commit graph

21 commits

Author SHA1 Message Date
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