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

◆ Expanse() [1/3]

MayaFlux::Nexus::Expanse::Expanse ( ContainsFn  contains,
CrossingFn  on_enter,
CrossingFn  on_exit 
)
inline

Construct with a containment predicate and crossing actions.

Parameters
containsReturns true when a world position lies within the Expanse.
on_enterFired with the entity id when it enters. May be empty.
on_exitFired with the entity id when it leaves. May be empty.

Definition at line 42 of file Expanse.hpp.

43 : m_contains(std::move(contains))
44 , m_on_enter(std::move(on_enter))
45 , m_on_exit(std::move(on_exit))
46 {
47 }
bool contains(const glm::vec3 &p) const
Test whether a world position lies within the Expanse.
Definition Expanse.hpp:89