37 QML_VALUE_TYPE(density)
49 result.m_densityInKgPerCubeMeter = densityInKgPerCubeMeter;
58 [[nodiscard]] Q_INVOKABLE
bool isFinite()
const
60 return std::isfinite(m_densityInKgPerCubeMeter);
77 return m_densityInKgPerCubeMeter;
83 double m_densityInKgPerCubeMeter{ NAN };
Convenience class for density computations.
Q_INVOKABLE std::partial_ordering operator<=>(const Units::Density &rhs) const =default
Comparison.
static constexpr auto fromKgPerCubeMeter(double densityInKgPerCubeMeter) -> Density
Constructs a density.
Q_INVOKABLE bool isFinite() const
Checks if the Density is valid.
Q_INVOKABLE double toKgPerCubeMeter() const
Convert to density to kg per m³degree Kelvin.
Conversion between units used in aviation.