Class: 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



9
10
11
# File 'lib/containers/kd_tree.rb', line 9

def coords
  @coords
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/containers/kd_tree.rb', line 9

def id
  @id
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



9
10
11
# File 'lib/containers/kd_tree.rb', line 9

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



9
10
11
# File 'lib/containers/kd_tree.rb', line 9

def right
  @right
end