use crate::Hitable;
use crate::Ray;

#[derive(PartialEq)]
pub struct HitableList<T: Hitable + std::fmt::Debug> {
    l: Vec<Box<T>>,
}

impl<T: Hitable + std::fmt::Debug> HitableList<T> {
    pub fn new() -> HitableList<T> {
        HitableList::<T> { l: Vec::new() }
    }