class Chem::Spatial::KDTree

Direct Known Subclasses

Defined in:

chem/spatial/kdtree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Array(Vec3), cell : Parallelepiped | Nil) #

[View source]
def self.new(points : Array(Vec3)) #

[View source]

Instance Method Detail

def each_neighbor(pos : Vec3, *, within radius : Number, &block : Int32, Float64 -> ) : Nil #

[View source]
def nearest(pos : Vec3) : Int32 #

[View source]
def nearest_with_distance(pos : Vec3) : Tuple(Int32, Float64) #

[View source]
def neighbors(pos : Vec3, count : Int) : Array(Int32) #

[View source]
def neighbors(pos : Vec3, *, within radius : Number) : Array(Int32) #

[View source]
def neighbors_with_distances(pos : Vec3, count : Int) : Array(Tuple(Int32, Float64)) #

[View source]
def neighbors_with_distances(pos : Vec3, *, within radius : Number) : Array(Tuple(Int32, Float64)) #

[View source]