rsrt_cpu/src/object.rs

8 lines
167 B
Rust

use super::Ray;
use arrayvec::ArrayVec;
pub trait Object {
fn get_intersection(&self, ray: Ray) -> Option<f64>;
fn get_normal(&self) -> ArrayVec<[f64; 3]>;
}