pub fn test(&self, rect: &Box2D<f32>) -> bool {
        let mut fragments: SmallVec<[Box2D<f32>; 16]> = SmallVec::new();
        fragments.push(*rect);

        for item in &self.opaque_items {
            if item.rectangle.intersects(rect) {
                apply_occluder(&item.rectangle, &mut fragments);
            }
        }

        !fragments.is_empty()
    }
/// Returns true if the provided rect is at least partially visible, without adding it.
Returns true if the provided rect is at least partially visible, without adding it.
Returns true if the provided rect is at least partially visible without adding it .
pub fn test(&self, rect: &Box2D<f32>) -> bool {
        let mut fragments: SmallVec<[Box2D<f32>; 16]> = SmallVec::new();
        fragments.push(*rect);
        for item in &self.opaque_items {
            if item.rectangle.intersects(rect) {
                apply_occluder(&item.rectangle, &mut fragments);
            }
        }
        !fragments.is_empty()
    }
pub fn test ( & self , rect : & Box2D < f32 > ) -> bool { let mut fragments : SmallVec < [ Box2D < f32 > ; 16 ] > = SmallVec :: new ( ) ; fragments . push ( * rect ) ; for item in & self . opaque_items { if item . rectangle . intersects ( rect ) { apply_occluder ( & item . rectangle , & mut fragments ) ; } } ! fragments . is_empty ( ) }
Returns true if the provided rect is at least partially visible, without adding it.
Returns true if the provided rect is at least partially visible without adding it .
&self
rect
&Box2D<f32>