Commit Graph

24 Commits

Author SHA1 Message Date
Mateusz Pusz
e085beef40 feat: qp.quantity_from(PO) added 2023-09-13 11:57:22 +02:00
Mateusz Pusz
3b2ca4084a refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
Resolves #479 and relates to #477
2023-09-13 10:09:08 +02:00
Mateusz Pusz
cbcc6f4627 feat: compare.h header added with checks against zero
Resolves #487
2023-09-13 08:55:06 +02:00
Mateusz Pusz
d7261c8f76 fix(example): treat_as_floating_point specified for validated_type and ranged_representation 2023-09-04 12:30:14 +02:00
Mateusz Pusz
f0e1e202db fix: latitude and longitude are now quantity points and have proper formatting 2023-09-04 11:20:00 +02:00
Mateusz Pusz
81698f02e5 feat(example): validated_type now properly registers as a scalar type 2023-09-04 11:16:25 +02:00
Mateusz Pusz
b3fb025053 feat(example): text output added to validated_type and ranged_representation 2023-09-04 11:15:33 +02:00
Mateusz Pusz
f1c2c74ab0 refactor: quantity::value() renamed to quantity::numerical_value()
According to https://jcgm.bipm.org/vim/en/1.19.html "quantity value" also contains a unit. According to https://jcgm.bipm.org/vim/en/1.20.html "numerical value" is the correct term for just a number.

Resolves #423
2023-08-30 11:30:35 +02:00
Mateusz Pusz
a9204e2473 refactor: number() and number_in() renamed to value() and value_in()
Resolves #423
2023-08-23 17:15:32 +02:00
Mateusz Pusz
e49e6c40ae feat: absolute() member function removed from quantity_point 2023-08-23 14:52:09 +02:00
Mateusz Pusz
1e81069d53 feat: absolute_point_origin convertibility removed 2023-08-01 11:53:50 +02:00
Mateusz Pusz
ba1f58af76 refactor: All the macros refactored to have MP_UNITS_ prefix 2023-06-21 18:05:21 +02:00
Mateusz Pusz
2dc420c505 fix: new quantity creation policy for irrational magnitudes forbids creation of longitude and latitude with an integral representation 2023-06-08 22:19:34 +02:00
Mateusz Pusz
561fbf7c93 merge branch master 2023-05-26 13:53:52 +02:00
Mateusz Pusz
7d9ae3ec31 refactor: mp_units subdirectory renamed to mp-units 2023-05-25 12:47:10 +02:00
Mateusz Pusz
a3e5c84a47 feat: support for convertibility of point origins added 2023-05-24 22:39:42 +02:00
Mateusz Pusz
1dae61e1c8 feat: quantity converting constructor now takes into account a convertibility of a representation type 2023-05-16 14:07:29 +02:00
Mateusz Pusz
a9cb0c0a40 refactor(example): msl_altitude moved to geographic.h and the header file was moved to another dir in examples 2023-05-15 12:56:11 +02:00
Mateusz Pusz
c54aa9b0eb refactor(example): common_type specialization for ranged_representation no longer needed 2023-04-07 23:00:34 +02:00
Mateusz Pusz
2cf736a1e6 feat: preventing possible future units crash when using namespace std;
Resolves #317
2022-12-29 20:18:48 +01:00
Mateusz Pusz
fd26f8cdff refactor(example): glide computer refactored for V2 2022-12-23 19:24:56 +01:00
Mateusz Pusz
967c1c9ca9 fix: ranged_representation fixed for clang-12 2022-04-22 13:26:31 +02:00
Mateusz Pusz
c598201d11 fix: ranged_representation refactored to work with older compilers 2022-04-22 13:07:01 +02:00
Mateusz Pusz
11521a5a96 feat(example): validated_type and ranged_representation example types added 2022-04-21 21:23:45 +02:00