aboutsummaryrefslogtreecommitdiff
path: root/src/ray.rs
diff options
context:
space:
mode:
authorlamp2024-01-21 17:03:07 +0000
committerlamp2024-01-21 17:03:07 +0000
commit45fafbcd4b41a5388ece377c4e051b5846407288 (patch)
tree2192c471ca3b47671f0906e27f6f6088f40b3d8a /src/ray.rs
parent89a5c9a8a0cdf627cda0e31da454f83ca21315ce (diff)
fmt and tidy
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,
}
}