sknano.core.atoms.MDAtoms.query_ball_point

MDAtoms.query_ball_point(pts, r, p=2.0, eps=0)[source]

Find all Atoms within distance r of point(s) pts.

Parameters:

pts : Point

The Point or Points to search for neighbors of.

r : positive float

The radius of KDTAtoms to return

p : float, 1<=p<=infinity

Which Minkowski p-norm to use. 1 is the sum-of-absolute-values “Manhattan” distance 2 is the usual Euclidean distance infinity is the maximum-coordinate-difference distance

eps : nonnegative float, optional

Approximate search.

Returns:

KDTAtoms