Struct cogs_gamedev::grids::rectangles::IRect [−][src]
Expand description
A rectangle with integer values.
Fields
left: isizetop: isizewidth: usizeheight: usizeImplementations
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 IRectimpl UnwindSafe for IRectBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V