Fleshed out Ray a bit more.

This commit is contained in:
Nathan Vegdahl 2015-12-27 00:50:18 -08:00
parent b20910a252
commit 81dc3d14a8

View File

@ -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,
}
}