From c7c4f8f82c66cfe89b72d176ee51dab8bd30dc95 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 20 Dec 2020 21:59:33 +0100 Subject: Add hittable interface and hit infos on hit --- include/ray.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ray.hpp') diff --git a/include/ray.hpp b/include/ray.hpp index 3f8542b..b3d88ae 100644 --- a/include/ray.hpp +++ b/include/ray.hpp @@ -8,7 +8,7 @@ class ray { ray(const point3& origin, const vec3& direction); - point3 at(double t); + point3 at(double t) const; point3 origin; vec3 direction; -- cgit v1.3