2#include "utils/Interval.hpp"
3#include "utils/VecN.hpp"
5#ifndef __AXIS_ALIGNED_BBOX_HPP__
6 #define __AXIS_ALIGNED_BBOX_HPP__
8namespace Raytracer::Utils
Definition AxisAlignedBBox.hpp:10
const Interval & axisInterval(int n) const
Get the interval along the x-axis.
Definition AxisAlignedBBox.cpp:77
static const AxisAlignedBBox Empty
Empty AxisAlignedBBox.
Definition AxisAlignedBBox.hpp:26
void padToMinimum()
Pad the AxisAlignedBBox to the minimum size.
Definition AxisAlignedBBox.cpp:160
static const AxisAlignedBBox Universe
Universe AxisAlignedBBox.
Definition AxisAlignedBBox.hpp:27
int longestAxis() const
Get the longest axis of the AxisAlignedBBox.
Definition AxisAlignedBBox.cpp:138
bool hit(const Core::Ray &ray, Interval interval) const
Check if the ray hits the AxisAlignedBBox.
Definition AxisAlignedBBox.cpp:100
Definition Interval.hpp:9