class GeoTreeModule::Node

Base class for KDTree nodes

Attributes

bounds[RW]
leaf[RW]
modified[RW]
name[RW]
next_node[RW]
prev_node[RW]
vertical[RW]

If true, the slabs are stacked vertically; otherwise, they’re arranged horizontally

Public Class Methods

new(name,leaf,vertical,bounds) click to toggle source
# File lib/geotree/node.rb, line 70
def initialize(name,leaf,vertical,bounds)
  @name = name
  @leaf = leaf
  @vertical = vertical
  @bounds = bounds
  @modified = false
end

Public Instance Methods

splittable() click to toggle source
# File lib/geotree/node.rb, line 78
def splittable
  s = [@bounds.w,@bounds.h].max
  s >= SPLITTABLE_LINEAR_SIZE
end