2020-06-06 18:38:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ray.h"
|
2023-02-20 02:19:28 +01:00
|
|
|
#include "hit_record.h"
|
2020-06-06 18:38:36 +02:00
|
|
|
|
|
|
|
class hittable
|
|
|
|
{
|
2023-02-20 02:19:28 +01:00
|
|
|
public:
|
|
|
|
virtual bool hit(const ray& r, double tMin, double tMax, hit_record& rec) const = 0;
|
2020-06-06 18:38:36 +02:00
|
|
|
};
|