1#include "interfaces/IHittable.hpp"
3#ifndef __ROTATE_Z_HPP__
4 #define __ROTATE_Z_HPP__
6namespace Raytracer::Effects
10 std::shared_ptr<Interfaces::IHittable> _object;
16 RotateZ(std::shared_ptr<Interfaces::IHittable>
object,
double angle);
Definition Payload.hpp:11
Utils::AxisAlignedBBox boundingBox() const override
Get the bounding box of the rotated object.
Definition RotateZ.cpp:108
RotateZ(std::shared_ptr< Interfaces::IHittable > object, double angle)
Construct a new RotateZ object.
Definition RotateZ.cpp:15
bool hit(const Core::Ray &ray, Utils::Interval interval, Core::Payload &payload) const override
Check if the ray hits the rotated object.
Definition RotateZ.cpp:62
Definition IHittable.hpp:11
Definition AxisAlignedBBox.hpp:10
Definition Interval.hpp:9