mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
style: formatting fixed to make pre-commit happy
This commit is contained in:
@@ -87,8 +87,7 @@ void print(const R& gliders)
|
|||||||
std::cout << "- Polar:\n";
|
std::cout << "- Polar:\n";
|
||||||
for (const auto& p : g.polar) {
|
for (const auto& p : g.polar) {
|
||||||
const auto ratio = glide_ratio(g.polar[0]).force_in(one);
|
const auto ratio = glide_ratio(g.polar[0]).force_in(one);
|
||||||
std::cout << MP_UNITS_STD_FMT::format(" * {::N[.4]} @ {::N[.1]} -> {::N[.1]} ({::N[.1]})\n",
|
std::cout << MP_UNITS_STD_FMT::format(" * {::N[.4]} @ {::N[.1]} -> {::N[.1]} ({::N[.1]})\n", p.climb, p.v, ratio,
|
||||||
p.climb, p.v, ratio,
|
|
||||||
// TODO is it possible to make ADL work below (we need another set of trig
|
// TODO is it possible to make ADL work below (we need another set of trig
|
||||||
// functions for strong angle in a different namespace)
|
// functions for strong angle in a different namespace)
|
||||||
si::asin(1 / ratio).force_in(si::degree));
|
si::asin(1 / ratio).force_in(si::degree));
|
||||||
@@ -135,8 +134,7 @@ void print(const task& t)
|
|||||||
std::cout << "- Legs: "
|
std::cout << "- Legs: "
|
||||||
<< "\n";
|
<< "\n";
|
||||||
for (const auto& l : t.get_legs())
|
for (const auto& l : t.get_legs())
|
||||||
std::cout << MP_UNITS_STD_FMT::format(" * {} -> {} ({::N[.1]})\n", l.begin().name, l.end().name,
|
std::cout << MP_UNITS_STD_FMT::format(" * {} -> {} ({::N[.1]})\n", l.begin().name, l.end().name, l.get_distance());
|
||||||
l.get_distance());
|
|
||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user