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