illuminator 0.1.1

A simple yet powerful rendering tool
Documentation
1
2
3
4
5
6
7
8
9
use std::fmt::Debug;

use crate::raycast::{Raycast, bounds::Bounds3f};

pub trait Primitive: Raycast + Sync + Send + Debug {
    fn bounds(&self) -> Bounds3f;

    fn clone_as_box(&self) -> Box<dyn Primitive>;
}