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::URect; let r = URect::new(0, 4, 10, 6); // w=10 h=2 let r = URect::new(2, 4, 5, 0); // w=3 h=4
Arguments
- x0 :
u32
- No Documentation 🚧 - y0 :
u32
- No Documentation 🚧 - x1 :
u32
- No Documentation 🚧 - y1 :
u32
- No Documentation 🚧
Returns
- arg0 :
URect
- No Documentation 🚧