Function rvlib::scale_coord

source ·
pub fn scale_coord<T>(x: T, size_from: T, size_to: T) -> T
where T: Calc,
Expand description

Scales a coordinate from an axis of size_from to an axis of size_to