Function fromUnion

Synopsis

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

static BoundingBox fromUnion(const BoundingBox &bb0, const BoundingBox &bb1)

Description

Constructs a bounding box from the union of two other bounding boxes.

Parameters:

[ in ] bb0 - First bounding box

[ in ] bb1 - Second bounding box

Return
A bounding box

Source

Lines 120-123 in Source/Falcor/Utils/Math/AABB.h.

static BoundingBox fromUnion(const BoundingBox& bb0, const BoundingBox& bb1)
{
    return BoundingBox::fromMinMax(min(bb0.getMinPos(), bb1.getMinPos()), max(bb0.getMaxPos(), bb1.getMaxPos()));
}





Add Discussion as Guest

Log in to DocsForge