rsrt_cpu/src/object.rs

7 lines
151 B
Rust
Raw Normal View History

2020-12-11 18:07:00 +00:00
use super::ray::Ray;
2020-12-10 20:38:07 +00:00
pub trait Object {
fn get_intersection(&self, ray: Ray) -> Option<f64>;
2020-12-11 20:05:34 +00:00
fn get_normal(&self, n: [f64; 3]) -> [f64; 3];
2020-12-10 20:38:07 +00:00
}