class Chem::Spatial::PeriodicKDTree

Defined in:

chem/spatial/kdtree.cr

Constructors

Instance Method Summary

Instance methods inherited from class Chem::Spatial::KDTree

each_neighbor(pos : Vec3, *, within radius : Number, &block : Int32, Float64 -> ) : Nil each_neighbor, nearest(pos : Vec3) : Int32 nearest, nearest_with_distance(pos : Vec3) : Tuple(Int32, Float64) nearest_with_distance, neighbors(pos : Vec3, count : Int) : Array(Int32)
neighbors(pos : Vec3, *, within radius : Number) : Array(Int32)
neighbors
, neighbors_with_distances(pos : Vec3, count : Int) : Array(Tuple(Int32, Float64))
neighbors_with_distances(pos : Vec3, *, within radius : Number) : Array(Tuple(Int32, Float64))
neighbors_with_distances

Constructor methods inherited from class Chem::Spatial::KDTree

new(points : Array(Vec3), cell : Parallelepiped | Nil)
new(points : Array(Vec3))
new

Constructor Detail

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

[View source]

Instance Method Detail

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

[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]