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

◆ random_position_volume()

glm::vec3 MayaFlux::Nodes::Network::ParticleNetwork::random_position_volume ( ) const
private

Random position in bounds volume.

Definition at line 603 of file ParticleNetwork.cpp.

604{
605 return {
606 m_bounds_min.x + (static_cast<float>(rand()) / RAND_MAX) * (m_bounds_max.x - m_bounds_min.x),
607 m_bounds_min.y + (static_cast<float>(rand()) / RAND_MAX) * (m_bounds_max.y - m_bounds_min.y),
608 m_bounds_min.z + (static_cast<float>(rand()) / RAND_MAX) * (m_bounds_max.z - m_bounds_min.z)
609 };
610}

References m_bounds_max, and m_bounds_min.

Referenced by handle_bounds(), and initialize_particle_positions().

+ Here is the caller graph for this function: