Function volume

Synopsis

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

float volume() const

Description

Return the volume of the box.

Returns
Volume if the box is valid, undefined otherwise.

Source

Lines 138-142 in Source/Falcor/Utils/Math/AABB.h.

float volume() const
{
    float3 e = extent();
    return e.x * e.y * e.z;
}





Add Discussion as Guest

Log in