Function ribir_geom::rect_corners

source ยท
pub fn rect_corners<T, U>(rect: &Rect<T, U>) -> [Point2D<T, U>; 4]
where T: Copy + Add<Output = T>,
Expand description

Return the four corners of a rectangle: [left-top, right-top, right-bottom, left-bottom]