Class: Algorithms::Containers::KDTree::Node

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

Instance Attribute Summary collapse

Instance Attribute Details

#coordsObject

Returns the value of attribute coords

Returns:

  • (Object)

    the current value of coords



28
29
30
# File 'lib/containers/kd_tree.rb', line 28

def coords
  @coords
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



28
29
30
# File 'lib/containers/kd_tree.rb', line 28

def id
  @id
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



28
29
30
# File 'lib/containers/kd_tree.rb', line 28

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



28
29
30
# File 'lib/containers/kd_tree.rb', line 28

def right
  @right
end