Skip to content

Commit 35b3a71

Browse files
committed
Add missing override keywords for aarect
Resolves #748
1 parent 6eda475 commit 35b3a71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TheRestOfYourLife/aarect.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class xz_rect : public hittable {
5555
return true;
5656
}
5757

58-
virtual double pdf_value(const point3& origin, const vec3& v) const {
58+
virtual double pdf_value(const point3& origin, const vec3& v) const override {
5959
hit_record rec;
6060
if (!this->hit(ray(origin, v), 0.001, infinity, rec))
6161
return 0;
@@ -67,7 +67,7 @@ class xz_rect : public hittable {
6767
return distance_squared / (cosine * area);
6868
}
6969

70-
virtual vec3 random(const point3& origin) const {
70+
virtual vec3 random(const point3& origin) const override {
7171
auto random_point = point3(random_double(x0,x1), k, random_double(z0,z1));
7272
return random_point - origin;
7373
}

0 commit comments

Comments
 (0)