Commit Graph
481 Commits
Author SHA1 Message Date
Mateusz Pusz 8dcdc7bdac fix: printing of symbols with fractional powers fixed 2022-10-23 22:19:44 +02:00
Mateusz Pusz e7bebac2a7 feat: power<Num, Den>() support added for dimensions and units 2022-10-23 10:47:12 +02:00
Mateusz Pusz 08b7716f51 feat: std::common_type support for unit added 2022-10-22 20:59:44 +02:00
Mateusz Pusz 17036cb2d0 feat: unit symbol text output support added 2022-10-22 19:27:39 +02:00
Mateusz Pusz aca8208568 test: dimension unit tests cleanup 2022-10-20 14:06:22 +02:00
Mateusz Pusz 0b9b159695 fix: units design refactored and fixed 2022-10-20 14:03:15 +02:00
Mateusz Pusz 8246b06b4a feat: type_list_element, type_list_back added; type_list_split refactored 2022-10-19 19:39:18 +02:00
Mateusz Pusz f156bc4c71 test: type_list unit tests added 2022-10-19 12:23:04 +02:00
Mateusz Pusz 98a19f6b4c feat: dimensions design is now complete 2022-10-19 11:21:15 +02:00
Mateusz Pusz 03e064fccd feat: equivalent support removed 2022-10-18 22:57:02 +02:00
Mateusz Pusz 6d898957ab docs: invalid comment text fixed 2022-10-18 22:55:58 +02:00
Mateusz Pusz a5c7934e0e refactor: units nearly done 2022-10-18 21:24:09 +02:00
Mateusz Pusz 6e8ca72678 refactor: dimensions design cleanup 2022-10-18 17:52:52 +02:00
Mateusz Pusz cf0a770d9b refactor: quantity arithmetics implemented 2022-10-09 21:32:38 +01:00
Mateusz Pusz 4a49bdda05 refactor: V2 design update 2022-10-06 23:43:01 +01:00
Mateusz Pusz 4411b8ea6d test: dimension unit tests added 2022-09-28 12:49:28 +02:00
Mateusz Pusz d0eceefe80 refactor: dead ratio code removed 2022-09-06 23:49:16 +02:00
Mateusz Pusz abc429a71a refactor: rotation angle unit renamed to revolution 2022-09-05 12:12:12 +02:00
Mateusz Pusz a39a49c147 test: VS2019 compilation fixed 2022-09-02 10:21:58 +02:00
Mateusz Pusz 396d39c35b test: AlmostEqualsMatcher compilation fixed 2022-09-01 17:18:02 +02:00
Mateusz Pusz a95cb53f73 test: unit tests for trigonometric functions added 2022-09-01 16:25:33 +02:00
Mateusz Pusz 707b39f0c4 build: catch2 updated to 3.1.0 2022-09-01 16:19:51 +02:00
Mateusz Pusz 1096d8d8ba fix: luminous flux support fixed 2022-09-01 12:18:18 +02:00
Mateusz Pusz e40a5d631c feat: solid angle support added 2022-09-01 12:16:47 +02:00
Mateusz Pusz a92a315bda feat: angular acceleration support added 2022-09-01 12:05:20 +02:00
Mateusz Pusz 1cb9d35d66 fix: radian_per_second unit symbol fixed 2022-09-01 12:02:45 +02:00
Mateusz Pusz 7719776711 feat: gradian support added 2022-09-01 10:48:34 +02:00
Mateusz Pusz c1d23b41c1 refactor: pi-based magnitude renamed to mag_pi 2022-09-01 10:47:36 +02:00
Mateusz Pusz 74f442d316 refactor: quantity_ratio removed as it is no longer used by the framework 2022-08-31 21:23:01 +02:00
Mateusz Pusz 8b534c8d8b feat: degrees and rotations support added
Resolves #370
2022-08-31 12:57:24 +02:00
Mateusz Pusz 1a29726d34 fix: math_test compile-time checks for floor, ceil, and round fixed
Relates to #311
2022-08-31 10:53:20 +02:00
Chip Hogg df290a74f0 Remove shadowing declaration of pi 2022-08-11 15:56:10 +00:00
Mateusz Pusz 1957e4424c docs: TODO comments cleanup in mixed system unit test files 2022-08-03 17:09:15 +02:00
Mateusz Pusz a1e1b70b92 test: Unit tests for 3-argument hypot added 2022-08-03 13:35:18 +02:00
Mateusz Pusz 4c8b3ce290 test: Commented out ceil unit test enabled as it works correctly now 2022-08-03 13:12:24 +02:00
Mateusz Pusz b252da0fe1 test: hypot unit tests added 2022-08-03 13:10:59 +02:00
Mateusz Pusz 0ebf85b9db fix: unknown_coherent_unit fixed 2022-08-01 11:59:00 +02:00
Johel Ernesto Guerrero Peña e988e1d74e refactor: update hacks for LLVM 16 2022-07-29 17:17:07 -04:00
Chip Hogg ea83af8aa9 Rename as_magnitude<...>() to mag<...>()
This is easier to write and to read.
2022-07-29 01:46:06 +00:00
Chip Hogg 7e591115fa Remove ratio's numerator() and denominator()
These have now become trivial.
2022-07-20 00:52:37 +00:00
Chip Hogg 7fd6913b73 Replace exp with 0 everywhere, and remove it
This lets us remove a ton of special-casing throughout the codebase, and
just generally makes things a lot simpler.

We also remove the ability to take rational powers of `ratio`, including
`sqrt` and `cbrt` helpers, because these are intrinsically ill-defined.

Fixes #369.
2022-07-20 00:52:37 +00:00
Chip Hogg 6a9dcb30de Migrate explicit-exp inputs 2022-07-20 00:52:36 +00:00
Chip Hogg 407a13c48f Add extract_power_of_10(Magnitude) utility
This will help with pretty-printing magnitudes by extracting a
reasonable power of 10.
2022-07-07 16:10:34 +00:00
Chip Hogg ef9e6522ca Merge branch 'master' into chiphogg/switch-to-mag 2022-06-15 20:50:30 +00:00
Mateusz Pusz 9a6d6f9d2a fix: MSVC conversion issues fixed 2022-06-09 13:50:01 +02:00
Mateusz Pusz 46b3781743 Revert "refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols"
This reverts commit db09a065ab.
2022-05-24 14:20:17 +02:00
Mateusz Pusz 38fb9911a9 refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols 2022-05-24 12:56:14 +02:00
Mateusz Pusz db09a065ab refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols 2022-05-24 12:48:07 +02:00
Mateusz Pusz 768f400cc3 test: quantity CTAD tests enabled only for the newest compilers 2022-05-23 09:56:45 +02:00
Mateusz Pusz 4498adce7c test: test for new quantity CTAD guide added 2022-05-22 19:49:10 +02:00