rsrt_cpu/src/object.rs

7 lines
133 B
Rust

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