pub fn to_physical_f32(logical: f32, scale: Scale) -> f32Expand description
Converts a logical length to physical pixels with logical * dpr.
This does not round, clamp, or reject non-finite values.
ยงExamples
use ailloli_ui_core::Scale;
use ailloli_ui_core::math::to_physical_f32;
assert_eq!(to_physical_f32(3.0, Scale::new(2.0)), 6.0);