Function piston_window::rectangle::rectangle_by_corners
source · pub fn rectangle_by_corners(x0: f64, y0: f64, x1: f64, y1: f64) -> [f64; 4]
Expand description
Create types::Rectangle
by the two opposite corners.
The corners are in (x0, y0) and (x1, y1).