fix: in case of no factor a radius should not be a kind of diameter to prevent accidental implicit conversions

This commit is contained in:
Mateusz Pusz
2022-12-19 12:51:46 +01:00
parent a96c34c17a
commit c5fa2399af

View File

@@ -35,7 +35,7 @@ inline constexpr auto altitude = height;
QUANTITY_SPEC(thickness, width);
QUANTITY_SPEC(diameter, width);
// QUANTITY_SPEC(radius, mag<ratio{1, 2}> * diameter); // TODO should we support that?
QUANTITY_SPEC(radius, diameter);
QUANTITY_SPEC(radius, width);
QUANTITY_SPEC(path_length, length);
inline constexpr auto arc_length = path_length;
QUANTITY_SPEC(distance, path_length);