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

◆ get_node_output()

std::optional< double > MayaFlux::Nodes::Network::ParticleNetwork::get_node_output ( size_t  index) const
overridevirtual

Get output of specific internal node (for ONE_TO_ONE mapping)

Parameters
indexIndex of node in network
Returns
Output value, or nullopt if not applicable

Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 162 of file ParticleNetwork.cpp.

163{
164 if (index < m_particles.size()) {
165 return static_cast<double>(glm::length(m_particles[index].velocity));
166 }
167 return std::nullopt;
168}

References m_particles.