Detailed information regarding a ray-primitive intersection.
Definition HitDetail.h:26
Lightweight ray intersection testing and reporting object. If an intersection is found,...
Definition HitProbe.h:27
An object in the scene that a ray can intersect with.
Definition Intersectable.h:31
Definition Intersector.h:14
virtual void update(TSpanView< const Intersectable * > intersectables)=0
void calcHitDetail(const Ray &ray, HitProbe &probe, HitDetail *out_detail) const override
Calculates properties of a hit, such as coordinates and normal.
Definition Intersector.cpp:16
bool isIntersecting(const Ray &ray, HitProbe &probe) const override=0
Determine whether a given ray hits the object.
math::AABB3D calcAABB() const override=0
Calculates Axis-Aligned Bounding Box (AABB) of itself.
bool reintersect(const Ray &ray, HitProbe &probe, const Ray &srcRay, HitProbe &srcProbe) const override
Intersect the intersected object again with a different ray.
Definition Intersector.cpp:7
Represents a ray in space.
Definition Ray.h:21
The root for all renderer implementations.
Definition EEngineProject.h:6
std::span< const T, EXTENT > TSpanView
Same as TSpan, except that the objects are const-qualified. Note that for pointer types,...
Definition TSpan.h:19