Function piston_window::ellipse::circle [−][src]
pub fn circle(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 circle(x: f64, y: f64, radius: f64) -> [f64; 4]
Create types::Rectangle
for a square with a center in (x
, y
) and side
2 * radius
.