From 9c863dc8bf688f7b990b351d72b5aa1259072b0c Mon Sep 17 00:00:00 2001 From: STP Date: Sun, 12 Nov 2023 03:47:03 -0500 Subject: [PATCH] Added sphere, circle, cone --- src/ray.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }