Skip to content
Snippets Groups Projects
Hit.h 469 B
Newer Older
Postea's avatar
Postea committed
#pragma once

#include "../material/Material.h"
#include "../tools/SurfacePoint.h"
Postea's avatar
Postea committed
#include "Ray.h"

namespace cam {
class Hit : public util::SurfacePoint {
Yoel's avatar
Yoel committed
   public:
Yoel's avatar
Yoel committed
	Hit(const util::Vec3& hit, const util::Vec3& n,
	    const std::pair<float, float>& uv, float t,
Yoel's avatar
Yoel committed
	    const std::shared_ptr<material::Material>& material);
	friend std::ostream& operator<<(std::ostream& os, const cam::Hit& rhs);
Postea's avatar
Postea committed

Yoel's avatar
Yoel committed
}  // namespace cam