AtomTree

class AtomTree(atoms: List<Atom>)

Builds a k-d tree that allows effecient nearest neighbor queries

Constructors

Link copied to clipboard
fun AtomTree(atoms: List<Atom>)

Functions

Link copied to clipboard
fun nearest(atom: Atom): Iterator<Pair<Atom, Double>>

fun nearest(pos: Vector3dc): Iterator<Pair<Atom, Double>>

Iterates over atoms and their squared distances from the source position.

Properties

Link copied to clipboard
val atoms: List<Atom>