Function surfaceArea

Synopsis

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

float surfaceArea() const

Description

Returns the surface area of the bounding box.

Source

Lines 56-60 in Source/Falcor/Utils/Math/BBox.h.

float surfaceArea() const
{
    const float3 dims = dimensions();
    return 2.0f * (dims.x * dims.y + dims.y * dims.z + dims.x * dims.z);
}





Add Discussion as Guest

Log in to DocsForge