aboutsummaryrefslogtreecommitdiff
path: root/src/ray.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ray.rs')
-rw-r--r--src/ray.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ray.rs b/src/ray.rs
index 0a4fc3c..a3636e6 100644
--- a/src/ray.rs
+++ b/src/ray.rs
@@ -9,9 +9,17 @@ pub struct Ray {
impl Ray {
pub fn new() -> Ray {
Ray {
- origin: Point3 { x: 0.0, y: 0.0, z: 0.0 },
- direction: Vec3 { x: 0.0, y:0.0, z: 0.0},
- time: 0.0
+ origin: Point3 {
+ x: 0.0,
+ y: 0.0,
+ z: 0.0,
+ },
+ direction: Vec3 {
+ x: 0.0,
+ y: 0.0,
+ z: 0.0,
+ },
+ time: 0.0,
}
}