class Kd::Tree::Node(T)

Overview

Represents a node in the KD-tree. Each node stores a pivot point, the axis it splits, and references to its left and right children.

Defined in:

kd_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pivot : T, split : Int32, left : self | Nil, right : self | Nil) #

Instance Method Detail

def left : Node(T) | Nil #

def pivot : T #

def right : Node(T) | Nil #

def split : Int32 #