hPDB-1.1.2: Protein Databank file format library

Safe HaskellNone

Bio.PDB.Structure.Neighbours

Description

Searching for neighbouring atoms in a 3D space using Octree.

Synopsis

Documentation

makeOctree :: Iterable a Atom => a -> AtomOctreeSource

Make an Octree of Atoms

findInRadius :: AtomOctree -> Double -> Vector3 -> [(Vector3, Atom)]Source

Find all Atoms within a given radius from a point.

findNearest :: AtomOctree -> Vector3 -> Maybe (Vector3, Atom)Source

Find an Atoms closest to a point.

type AtomOctree = Octree AtomSource

Octree of Atoms.