diff options
Diffstat (limited to 'src/ray.rs')
-rw-r--r-- | src/ray.rs | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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, } } |