Class: KdTree::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/kd_tree.rb

Instance Attribute Summary collapse

Instance Attribute Details

#coordsObject

Returns the value of attribute coords

Returns:

  • (Object)

    the current value of coords



2
3
4
# File 'lib/kd_tree.rb', line 2

def coords
  @coords
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/kd_tree.rb', line 2

def id
  @id
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



2
3
4
# File 'lib/kd_tree.rb', line 2

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



2
3
4
# File 'lib/kd_tree.rb', line 2

def right
  @right
end