Path Tracer
Public Member Functions | Public Attributes | List of all members
KDTreeNode::Intersection Struct Reference

A struct binding a pointer to an Object3D, a distance, and a pointer to a KDTreeNode. More...

#include <KDTreeNode.h>

Collaboration diagram for KDTreeNode::Intersection:
[legend]

Public Member Functions

 Intersection (Object3D *object=nullptr, double distance=INFINITY, const KDTreeNode *kdTreeNode=nullptr)
 Main constructor. More...
 

Public Attributes

Object3Dobject
 The Object3D with which the ray intersects. More...
 
double distance
 The distance between the ray origin and the intersection point. More...
 
const KDTreeNodekdTreeNode
 The KDTreeNode in which the ray and the object intersect. More...
 

Detailed Description

A struct binding a pointer to an Object3D, a distance, and a pointer to a KDTreeNode.

Constructor & Destructor Documentation

◆ Intersection()

KDTreeNode::Intersection::Intersection ( Object3D object = nullptr,
double  distance = INFINITY,
const KDTreeNode kdTreeNode = nullptr 
)

Main constructor.

Parameters
objectThe Object3D with which the ray intersects.
distanceThe distance between the ray origin and the intersection point.
kdTreeNodeThe KDTreeNode in which the ray and the object intersect.

Member Data Documentation

◆ distance

double KDTreeNode::Intersection::distance

The distance between the ray origin and the intersection point.

◆ kdTreeNode

const KDTreeNode * KDTreeNode::Intersection::kdTreeNode

The KDTreeNode in which the ray and the object intersect.

◆ object

Object3D * KDTreeNode::Intersection::object

The Object3D with which the ray intersects.


The documentation for this struct was generated from the following files: