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