mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user