mirror of
https://github.com/mpusz/mp-units.git
synced 2026-02-12 09:59:17 +01:00
fix: torque literal fixed + experimental_angle example refactored
This commit is contained in:
@@ -22,21 +22,17 @@
|
||||
|
||||
#include <units/generic/angle.h>
|
||||
#include <units/isq/si/energy.h>
|
||||
#include <units/isq/si/force.h>
|
||||
#include <units/isq/si/length.h>
|
||||
#include <units/isq/si/torque.h>
|
||||
#include <units/quantity_io.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
using namespace units::literals;
|
||||
using namespace units::isq;
|
||||
using namespace units::isq::si::literals;
|
||||
|
||||
Torque auto torque = 20.0_q_Nm_per_rad;
|
||||
Energy auto energy = 20.0_q_J;
|
||||
const auto torque = 20.0_q_N_m_per_rad;
|
||||
const auto energy = 20.0_q_J;
|
||||
|
||||
units::Angle auto angle = energy / torque;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user