mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
angular_velocity support fixed
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
namespace units::physical::si {
|
||||
|
||||
struct radian_per_second : named_unit<radian_per_second, "ω", no_prefix> {};
|
||||
struct radian_per_second : named_unit<radian_per_second, {"ω", "w"}, no_prefix> {};
|
||||
|
||||
struct dim_angular_velocity : physical::dim_angular_velocity<dim_angular_velocity, radian_per_second, dim_angle, dim_time> {};
|
||||
|
||||
|
@ -379,5 +379,5 @@ static_assert(detail::unit_text<dim_molar_energy, joule_per_mole>() == "J/mol");
|
||||
|
||||
// angular velocity
|
||||
static_assert(1q_rad / 1q_s == 1q_rad_per_s);
|
||||
static_assert(detail::unit_text<dim_angular_velocity, radian_per_second>() == "ω");
|
||||
static_assert(detail::unit_text<dim_angular_velocity, radian_per_second>() == basic_symbol_text("ω", "w"));
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user