pub fn contains(self, other: Self) -> bool {
        other.x >= self.x
            && other.x + other.w <= self.x + self.w
            && other.y >= self.y
            && other.y + other.h <= self.y + self.h
    }
/// Check if a rectangle contains another rectangle
Check if a rectangle contains another rectangle
Check if a rectangle contains another rectangle
pub fn contains(self, other: Self) -> bool {
        other.x >= self.x
            && other.x + other.w <= self.x + self.w
            && other.y >= self.y
            && other.y + other.h <= self.y + self.h
    }
pub fn contains ( self , other : Self ) -> bool { other . x >= self . x && other . x + other . w <= self . x + self . w && other . y >= self . y && other . y + other . h <= self . y + self . h }
Check if a rectangle contains another rectangle
Check if a rectangle contains another rectangle
self
other
Self