14namespace hi::inline
v1 {
18template<std::
floating_po
int T>
30template<std::
floating_po
int T>
33template<std::
floating_po
int T>
34constexpr auto points_to_dp_scale_v = dp_per_inch_v<T> / points_per_inch_v<T>;
38template<std::
floating_po
int T>
41 return x * points_to_dp_scale_v<T>;
DOXYGEN BUG.
Definition algorithm.hpp:15
constexpr auto points_per_inch_v
The number of points (typography) per inch.
Definition numbers.hpp:19
constexpr auto dp_per_inch_v
The number of device independent pixels per inch.
Definition numbers.hpp:31
constexpr double points_per_inch
Definition numbers.hpp:46
constexpr double dp_per_inch
Definition numbers.hpp:50
constexpr T points_to_dp(T x) noexcept
Convert points to device independent pixels.
Definition numbers.hpp:39