Function piston_window::rectangle::centered_square
source · pub fn centered_square(x: f64, y: f64, radius: f64) -> [f64; 4]
Expand description
Create types::Rectangle
for a square with a center in (x
, y
) and side
2 * radius
.