From 45fafbcd4b41a5388ece377c4e051b5846407288 Mon Sep 17 00:00:00 2001 From: lamp Date: Sun, 21 Jan 2024 17:03:07 +0000 Subject: fmt and tidy --- src/ray.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/ray.rs') 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, } } -- cgit v1.2.3