Function include

Summary

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

(1) AABB & include(const float3 &p)

(2) AABB & include(const AABB &b)

Function overload

Synopsis

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

AABB & include(const float3 &p)

Description

Grows the box to include the point p.

Mentioned in

  • Usage / Scripting / AABB

Source

Lines 85-90 in Source/Falcor/Utils/Math/AABB.h.

AABB& include(const float3& p)
{
    minPoint = min(minPoint, p);
    maxPoint = max(maxPoint, p);
    return *this;
}

Synopsis

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

AABB & include(const AABB &b)

Description

Grows the box to include another box.

Mentioned in

  • Usage / Scripting / AABB

Source

Lines 94-99 in Source/Falcor/Utils/Math/AABB.h.

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





Add Discussion as Guest

Log in