Function piston_window::math::margin_rectangle

source ยท
pub fn margin_rectangle<T>(rect: [T; 4], m: T) -> [T; 4]
where T: Float,
Expand description

Shrinks a rectangle by a factor on all sides.