9 #ifndef IMPEXAMPLE_COUNTING_H
10 #define IMPEXAMPLE_COUNTING_H
12 #include <IMP/example/example_config.h>
16 IMPEXAMPLE_BEGIN_NAMESPACE
25 double point_distance) {
27 for (
unsigned int i = 0; i < vsa.size(); ++i) {
30 IMP_NEW(algebra::NearestNeighbor3D, nn, (vsa));
32 for (
unsigned int i = 0; i < psb.size(); ++i) {
34 if (!nn->get_in_ball(v, point_distance).empty()) {
41 IMPEXAMPLE_END_NAMESPACE
#define IMP_NEW(Typename, varname, args)
Declare a ref counted pointer to a new object.
unsigned int get_number_of_incidences(const kernel::ParticlesTemp &psa, const kernel::ParticlesTemp &psb, double point_distance)
A decorator for a particle with x,y,z coordinates.
const algebra::Vector3D & get_coordinates() const
Convert it to a vector.
Functions to generate vectors.