Commit Graph

10 Commits

Author SHA1 Message Date
rdb 8c8cbeea98 linmath: For repr, use as much precision as needed for roundtrip
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector.  This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.

Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need

Fixes #1671
2024-08-07 17:24:11 +02:00
rdb f30019af13 tests: xfail vector floor division tests on Windows
Can't figure this one out for now.
2021-08-03 15:49:11 +02:00
rdb 5804c663a9 tests: Backport unit test fix from c0d3491223 2021-06-01 11:47:19 +02:00
rdb 2386e80448 linmath: Backport support for floor division to 1.10
Backport of 8944737844

(Also fixes return type of `__pow__` to always be derived class)
2021-06-01 10:45:56 +02:00
rdb 4e0e945279 linmath: Backport round(), floor(), ceil() support for vectors
See #821
2021-06-01 10:23:58 +02:00
rdb 9ac1a4f7cb tests: Add some unit tests for #987 2020-08-17 12:16:33 +02:00
rdb be24266715 tests: Copy some linmath/gobj tests over from master branch 2020-08-17 12:16:33 +02:00
rdb cc4d5259cc linmath: fix mat4.get_col3() and mat4.get_row3() when using Eigen 2019-05-02 19:40:23 +02:00
rdb b4abea17d5 tests: add various matrix unit tests 2018-08-19 16:43:34 +02:00
rdb 838d238f6e tests: add various test cases to test egg loading and transforms
Used to track down and reproduce the issue in #228.
2018-08-12 22:14:22 +02:00