Function piston_window::rectangle::margin

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

Shrinks a rectangle by a factor on all sides.