Function operator&=

Synopsis

#include <Source/Falcor/Utils/Math/BBox.h>

BBox & operator&=(const BBox &rhs)

Description

Intersection of two boxes.

Source

Lines 88-93 in Source/Falcor/Utils/Math/BBox.h.

BBox& operator&= (const BBox& rhs)
{
    minPoint = glm::max(minPoint, rhs.minPoint);
    maxPoint = glm::min(maxPoint, rhs.maxPoint);
    return *this;
}





Add Discussion as Guest

Log in to DocsForge