pub fn scale_coord<T>(x: T, size_from: T, size_to: T) -> Twhere T: Calc,
Scales a coordinate from an axis of size_from to an axis of size_to