fix: 💥 dim_torque now properly divides by an angle (instead of multiply) + default unit name change

Resolves #220
This commit is contained in:
Mateusz Pusz
2021-02-15 15:01:56 +01:00
parent efeacca9ee
commit 4d965d7f47
5 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ using namespace units::physical::si::literals;
int main()
{
auto torque = 20.0_q_Nm;
auto torque = 20.0_q_Nm_per_rad;
auto energy = 20.0_q_J;
Angle auto angle = torque / energy;
Angle auto angle = energy / torque;
std::cout << angle << '\n';
}