mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
[clang-format]
This commit is contained in:
@@ -45,8 +45,8 @@ namespace {
|
||||
|
||||
using namespace mp_units;
|
||||
|
||||
QuantityOf<(isq::mechanical_energy)> auto total_energy(QuantityOf<(isq::momentum)> auto p, QuantityOf<(isq::mass)> auto m,
|
||||
QuantityOf<(isq::speed)> auto c)
|
||||
QuantityOf<(isq::mechanical_energy)> auto total_energy(QuantityOf<(isq::momentum)> auto p,
|
||||
QuantityOf<(isq::mass)> auto m, QuantityOf<(isq::speed)> auto c)
|
||||
{
|
||||
return isq::mechanical_energy(sqrt(pow<2>(p * c) + pow<2>(m * pow<2>(c))));
|
||||
}
|
||||
|
Reference in New Issue
Block a user