Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
kd_tree
v0.1.0
Kd
Node
Point
Tree
Built with Crystal 1.9.2
2023-10-08 10:02:38 UTC
class
Kd::Node
Kd::Node
Reference
Object
Defined in:
kd_tree.cr
Constructors
.new
(pivot : Point, split : Int32, left :
self
| Nil, right :
self
| Nil)
Instance Method Summary
#left
: Kd::Node?
#pivot
: Array(Float64)
#right
: Kd::Node?
#split
: Int32
Constructor Detail
def self.
new
(pivot :
Point
, split : Int32, left :
self
| Nil, right :
self
| Nil)
#
[
View source
]
Instance Method Detail
def
left
:
Kd::Node
?
#
[
View source
]
def
pivot
: Array(Float64)
#
[
View source
]
def
right
:
Kd::Node
?
#
[
View source
]
def
split
: Int32
#
[
View source
]