pub fn intersects(&self, r: &Rect) -> bool {
        ! (
            r.x >= (self.x + self.width as i32) ||
            self.x >= (r.x + r.width as i32) ||
            r.y >= (self.y + self.height as i32) ||
            self.y >= (r.y + r.height as i32)
        )
    }
// Check if this rect intersects another rect
Check if this rect intersects another rect
Check if this rect intersects another rect
pub fn intersects(&self, r: &Rect) -> bool {
        ! (
            r.x >= (self.x + self.width as i32) ||
            self.x >= (r.x + r.width as i32) ||
            r.y >= (self.y + self.height as i32) ||
            self.y >= (r.y + r.height as i32)
        )
    }
pub fn intersects ( & self , r : & Rect ) -> bool { ! ( r . x >= ( self . x + self . width as i32 ) || self . x >= ( r . x + r . width as i32 ) || r . y >= ( self . y + self . height as i32 ) || self . y >= ( r . y + r . height as i32 ) ) }
Check if this rect intersects another rect
Check if this rect intersects another rect
&self
r
&Rect