xmol::geom::SpatialIndex class

Public types

using bin_id_t = std::tuple<int, int, int>
using index_t = int
using indices_t = std::vector<index_t>

Constructors, destructors, conversion operators

SpatialIndex(const future::Span<XYZ>& coords, double bin_side_length)

Public functions

auto within(double distance, const XYZ& point) -> indices_t