MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ reach()

virtual std::pair< glm::vec3, float > MayaFlux::Nexus::Expanse::reach ( ) const
inlineprotectedvirtual

Where the region is centred and how far it reaches, for perceptions.

The centre and the half diagonal of the box if there is one, else the origin and zero. A derived Expanse whose region is not the box overrides it.

Reimplemented in MayaFlux::Nexus::Hull.

Definition at line 314 of file Expanse.hpp.

315 {
316 if (m_bounds) {
317 return { m_bounds->center(), glm::length(m_bounds->half_extent()) };
318 }
319 return { glm::vec3(0.0F), 0.0F };
320 }
std::optional< Kinesis::AABB3D > m_bounds
Definition Expanse.hpp:344

Referenced by evaluate(), and MayaFlux::Nexus::Hull::reach().

+ Here is the caller graph for this function: