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