Struct cogs_gamedev::grids::rectangles::IRect [−][src]
Expand description
A rectangle with integer values.
Fields
left: isize
top: isize
width: usize
height: usize
Implementations
Return a new rectangle centered at the given position with the given w/h
Does this rect contain the pos?
Points on the boundary count.
Iterator through all the positions in the rect. It goes in reading order: left-to-right, top-to-bottom.
(Sorry hebrew speakers)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IRect
impl UnwindSafe for IRect
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V