This repository has been archived on 2023-01-29. You can view files and clone it, but cannot push or open issues or pull requests.

20 lines
242 B
C++

#ifndef TARGET_H
#define TARGET_H
#include "ray.h"
struct hit_record
{
float t;
vec3 p;
vec3 normal;
};
class target
{
public:
virtual bool hit(const ray &r, float t_min, float t_max, hit_record &rec) const = 0;
};
#endif