14namespace hi::inline v1 {
18template<std::
floating_po
int T>
19constexpr auto points_per_inch_v = T{72.0};
30template<std::
floating_po
int T>
31constexpr auto dp_per_inch_v = T{80.0};
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>
39constexpr T points_to_dp(T x)
noexcept
41 return x * points_to_dp_scale_v<T>;
46constexpr double points_per_inch = points_per_inch_v<double>;
50constexpr double dp_per_inch = dp_per_inch_v<double>;