Function center
Synopsis
#include <Source/Falcor/Utils/Math/AABB.h>
float3 center() const
Description
Returns the box center.
- Returns
- Center of the box if valid, undefined otherwise.
Mentioned in
- Usage / Scripting / AABB
Source
Lines 113-116 in Source/Falcor/Utils/Math/AABB.h.
float3 center() const
{
return (minPoint + maxPoint) * 0.5f;
}