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 --- src/ray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ray.cpp') diff --git a/src/ray.cpp b/src/ray.cpp index 2d479b7..ebf392b 100644 --- a/src/ray.cpp +++ b/src/ray.cpp @@ -3,6 +3,6 @@ ray::ray(const point3& origin, const vec3& direction): origin(origin), direction(direction) {} -point3 ray::at(double t) { +point3 ray::at(double t) const { return origin + direction * t; } -- cgit v1.3