pub fn rectangle_by_corners( x0: Scalar, y0: Scalar, x1: Scalar, y1: Scalar, ) -> Rectangle
Create types::Rectangle by the two opposite corners.
types::Rectangle
The corners are in (x0, y0) and (x1, y1).