Path Tracer
Functions
KDTreeNode.cpp File Reference
#include "KDTreeNode.h"
Include dependency graph for KDTreeNode.cpp:

Functions

DoubleVec3D getMinPoint (std::vector< Object3D * > objects)
 Computes the minimum point of a cuboid containing all the objects. More...
 
DoubleVec3D getMaxPoint (std::vector< Object3D * > objects)
 Computes the maximum point of a cuboid containing all the objects. More...
 
void to_json (json &j, const KDTreeNode &node)
 Conversion to json. More...
 

Function Documentation

◆ getMaxPoint()

DoubleVec3D getMaxPoint ( std::vector< Object3D * >  objects)

Computes the maximum point of a cuboid containing all the objects.

Parameters
objectsThe objects that will be used for the computation.
Returns
The maximum point.

◆ getMinPoint()

DoubleVec3D getMinPoint ( std::vector< Object3D * >  objects)

Computes the minimum point of a cuboid containing all the objects.

Parameters
objectsThe objects that will be used for the computation.
Returns
The minimum point.

◆ to_json()

void to_json ( json j,
const KDTreeNode node 
)

Conversion to json.

Only used for debugging.

Parameters
jJson output.
nodeThe node that will be converted.