Expand description
Axis-aligned rectangles and intersection helpers.
§Examples
use ailloli_ui_core::geometry::rect::Rect;
assert_eq!(Rect::new(0.0, 0.0, 2.0, 3.0).right(), 2.0);Axis-aligned rectangles in logical coordinate spaces.
Structs§
- Rect
- Axis-aligned rectangle in logical space: origin
(x, y)and size(w, h).