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

◆ Expanse() [2/3]

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

Construct with a named containment predicate and crossing actions.

Parameters
fn_nameIdentifier used for state encoding.
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 56 of file Expanse.hpp.

57 : m_fn_name(std::move(fn_name))
58 , m_contains(std::move(contains))
59 , m_on_enter(std::move(on_enter))
60 , m_on_exit(std::move(on_exit))
61 {
62 }
const std::string & fn_name() const
Identifier assigned to the containment predicate, empty if anonymous.
Definition Expanse.hpp:95
bool contains(const glm::vec3 &p) const
Test whether a world position lies within the Expanse.
Definition Expanse.hpp:89