Function piston_window::rectangle::square [−][src]
pub fn square(x: f64, y: f64, size: f64) -> [f64; 4]
Create types::Rectangle
for a square with a top-left corner in (x
, y
)
and side size
.
pub fn square(x: f64, y: f64, size: f64) -> [f64; 4]
Create types::Rectangle
for a square with a top-left corner in (x
, y
)
and side size
.