refactor: implementation cleanup + support for units as references started

This commit is contained in:
Mateusz Pusz committed 2023-02-02 14:56:29 +01:00
1 parent 622b3e3cbd
commit cf3408a3c8
31 files changed
+1085 -615

No files matched your search

@@ -105,7 +105,7 @@ struct glider {
std::array<polar_point, 1> polar;
};
constexpr mp_units::weak_quantity_of<mp_units::dimensionless> auto glide_ratio(const glider::polar_point& polar)
constexpr mp_units::WeakQuantityOf<mp_units::dimensionless> auto glide_ratio(const glider::polar_point& polar)
{
return polar.v / -polar.climb;
}