2#include "interfaces/IHittable.hpp"
3#include "interfaces/IMaterial.hpp"
5#ifndef __CYLINDER_HPP__
6 #define __CYLINDER_HPP__
8namespace Raytracer::Shapes
15 std::shared_ptr<Interfaces::IMaterial> _material;
21 std::shared_ptr<Interfaces::IMaterial> material);
Definition Payload.hpp:11
Definition IHittable.hpp:11
Definition Cylinder.hpp:10
virtual Utils::AxisAlignedBBox boundingBox() const override
Get the bounding box of the cylinder.
Definition Cylinder.cpp:125
virtual bool hit(const Core::Ray &ray, Utils::Interval interval, Core::Payload &payload) const override
Check if the ray hits the cylinder.
Definition Cylinder.cpp:40
Definition AxisAlignedBBox.hpp:10
Definition Interval.hpp:9