Skip to content
Snippets Groups Projects
CirclePlane.h 427 B
Newer Older
Postea's avatar
Postea committed
#pragma once
Postea's avatar
Postea committed
#include "Shape.h"

namespace shapes {
class CirclePlane : public Shape {
Yoel's avatar
Yoel committed
   public:
	CirclePlane(float radius,
	            const std::shared_ptr<material::Material>& material);
	std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const override;
	util::AxisAlignedBoundingBox bounds() const override;
Yoel's avatar
Yoel committed
   private:
	std::shared_ptr<material::Material> material;
	const float radius;
Yoel's avatar
Yoel committed
}  // namespace shapes