Function intersection

Synopsis

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

AABB & intersection(const AABB &b)

Description

Make the box be the intersection between this and another box.

Mentioned in

  • Usage / Scripting / AABB

Source

Lines 103-108 in Source/Falcor/Utils/Math/AABB.h.

AABB& intersection(const AABB& b)
{
    minPoint = glm::max(minPoint, b.minPoint);
    maxPoint = glm::min(maxPoint, b.maxPoint);
    return *this;
}





Add Discussion as Guest

Log in