VRay SDK for C++
Loading...
Searching...
No Matches
VRay::Box Struct Reference

Axis-aligned bounding box. More...

#include <vraysdk.hpp>

Public Member Functions

void expand (const Box &box)
 
void expand (const Vector &point)
 
std::string toString () const
 

Public Attributes

Vector pmax
 The upper bounds for the box along the three axes.
 
Vector pmin
 The lower bounds for the box along the three axes.
 

Detailed Description

Axis-aligned bounding box.

Member Function Documentation

◆ expand() [1/2]

void VRay::Box::expand ( const Box box)
inline

Expands the bounding box with the provided box, effectively resulting in a bounding box containing both boxes.

Parameters
boxThe bounding used to expand the current box.

◆ expand() [2/2]

void VRay::Box::expand ( const Vector point)
inline

Expands the bounding box to contain the provided point (if it does not already)

Parameters
pointThe point that will be included in the bounding box.

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