Function area

Synopsis

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

float area() const

Description

Returns the surface area of the box.

Returns
Surface area if box is valid, undefined otherwise.

Source

Lines 129-133 in Source/Falcor/Utils/Math/AABB.h.

float area() const
{
    float3 e = extent();
    return (e.x * e.y + e.x * e.z + e.y * e.z) * 2.f;
}





Add Discussion as Guest

Log in