diff --git a/src/ray.rs b/src/ray.rs index 7dcb8e8..3d5bc2a 100644 --- a/src/ray.rs +++ b/src/ray.rs @@ -11,7 +11,7 @@ impl Ray { pub fn new(_a: Point3, _b: Vector3) -> Ray { Ray { a: _a, b: _b } } - pub fn at_t(self, t: f32) -> Point3 { + pub fn at_t(&self, t: f32) -> Point3 { self.a + self.b * t } }