Module: AABBTreeDebugHelpers
- Included in:
- AABBTree
- Defined in:
- lib/gamebox/core/aabb_helpers.rb
Instance Method Summary collapse
Instance Method Details
#each(&blk) ⇒ Object
7 8 9 10 |
# File 'lib/gamebox/core/aabb_helpers.rb', line 7 def each(&blk) return unless @root query @root.bb, &blk end |
#each_leaf(&blk) ⇒ Object
17 18 19 20 |
# File 'lib/gamebox/core/aabb_helpers.rb', line 17 def each_leaf(&blk) return unless @root @root.each_leaf &blk end |
#each_node(&blk) ⇒ Object
12 13 14 15 |
# File 'lib/gamebox/core/aabb_helpers.rb', line 12 def each_node(&blk) return unless @root @root.each_node &blk end |
#valid? ⇒ Boolean
2 3 4 5 |
# File 'lib/gamebox/core/aabb_helpers.rb', line 2 def valid? return true unless @root @root.contains_children? end |