Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Chem::Spatial::KDTree
Inherits
Reference
/
Object
Constructors
new
(points :
Array
(
Vec3
), cell :
Parallelepiped
|
Nil
)
Source
new
(points :
Array
(
Vec3
))
Source
Instance methods
each_neighbor
(pos :
Vec3
, *, within radius :
Number
, &block :
Int32
,
Float64
-> ) :
Nil
Source
nearest
(pos :
Vec3
) :
Int32
Source
nearest_with_distance
(pos :
Vec3
) :
Tuple
(
Int32
,
Float64
)
Source
neighbors
(pos :
Vec3
, count :
Int
) :
Array
(
Int32
)
Source
neighbors
(pos :
Vec3
, *, within radius :
Number
) :
Array
(
Int32
)
Source
neighbors_with_distances
(pos :
Vec3
, count :
Int
) :
Array
(
Tuple
(
Int32
,
Float64
))
Source
neighbors_with_distances
(pos :
Vec3
, *, within radius :
Number
) :
Array
(
Tuple
(
Int32
,
Float64
))
Source