Wayverb
validate_placements.h File Reference
#include <algorithm>

Go to the source code of this file.

Functions

template<typename ItA , typename ItB >
bool wayverb::combined::is_pairwise_distance_acceptable (ItA b_a, ItA e_a, ItB b_b, ItB e_b, double min_spacing)
 
template<typename It , typename Voxelised >
bool wayverb::combined::are_all_inside (It b, It e, const Voxelised &voxelised)
 

Detailed Description

Function(s) to check that all sources and receivers in a scene are placed appropriately.

Function Documentation

template<typename ItA , typename ItB >
bool wayverb::combined::is_pairwise_distance_acceptable ( ItA  b_a,
ItA  e_a,
ItB  b_b,
ItB  e_b,
double  min_spacing 
)

Given two ranges of positions, check that no item in the first range is too close to any item in the second range. WARNING this has O(a*b) complexity so use sparingly, on known-to-be-small datasets.