rsrt_cpu/src/object.rs

7 lines
151 B
Rust

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