From 81dc3d14a8254ee70aab0e8edfccdba0c81c5f83 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sun, 27 Dec 2015 00:50:18 -0800 Subject: [PATCH] Fleshed out Ray a bit more. --- src/ray.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ray.rs b/src/ray.rs index 197f0c5..db7b203 100644 --- a/src/ray.rs +++ b/src/ray.rs @@ -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, } }