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