Fleshed out Ray a bit more.
This commit is contained in:
parent
b20910a252
commit
81dc3d14a8
|
@ -1,11 +1,15 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
use std;
|
||||
|
||||
use math::{Vector, Point, Matrix4x4};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Ray {
|
||||
pub orig: Point,
|
||||
pub dir: Vector,
|
||||
pub max_t: f32,
|
||||
pub time: f32,
|
||||
}
|
||||
|
||||
impl Ray {
|
||||
|
@ -13,6 +17,8 @@ impl Ray {
|
|||
Ray {
|
||||
orig: orig,
|
||||
dir: dir,
|
||||
max_t: std::f32::INFINITY,
|
||||
time: 0.0,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user