Function piston_window::rectangle::centered[][src]

pub fn centered(rect: [f64; 4]) -> [f64; 4]

Use x, y, half-width, half-height