Function radius
Synopsis
#include <Source/Falcor/Utils/Math/AABB.h>
float radius() const
Description
Returns the radius of the minimal sphere that encloses the box.
- Returns
- Radius of minimal bounding sphere, or undefined if box is invalid.
Source
Lines 147-150 in Source/Falcor/Utils/Math/AABB.h.
float radius() const
{
return 0.5f * glm::length(extent());
}