new
Create a new rectangle from two corner points. The two points do not need to be the minimum and/or maximum corners. They only need to be two opposite corners.
Examples
# use bevy_math::Rect; let r = Rect::new(0., 4., 10., 6.); // w=10 h=2 let r = Rect::new(2., 3., 5., -1.); // w=3 h=4
Arguments
- x0 :
f32
- No Documentation 🚧 - y0 :
f32
- No Documentation 🚧 - x1 :
f32
- No Documentation 🚧 - y1 :
f32
- No Documentation 🚧
Returns
- arg0 :
Rect
- No Documentation 🚧