diff options
Diffstat (limited to 'src/ray.cpp')
| -rw-r--r-- | src/ray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
