mp_units::dimension_one¶
The dimension in which every base dimension has the exponent zero
Synopsis¶
Declared in <mp-units/framework/dimension.h>
inline constexpr dimension_one dimension_one;
Description¶
It is the dimension of dimensionless and of every quantity defined from it. Such a quantity may appear as a count or be created as a ratio of two quantities of the same dimension:
// a screen 527 mm wide and 296 mm high
quantity aspect_ratio = isq::width(527. * mm) / isq::height(296. * mm);
constexpr bool is_ratio = aspect_ratio.dimension == dimension_one; // true
See Also¶
- Dimensionless Quantities in the User's Guide