Class: Doom::Render::RayTracing::Bvh::Node
- Inherits:
-
Struct
- Object
- Struct
- Doom::Render::RayTracing::Bvh::Node
- Defined in:
- lib/doom/render/ray_tracing/bvh.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#escape ⇒ Object
Returns the value of attribute escape.
-
#left ⇒ Object
Returns the value of attribute left.
-
#maximum ⇒ Object
Returns the value of attribute maximum.
-
#minimum ⇒ Object
Returns the value of attribute minimum.
-
#right ⇒ Object
Returns the value of attribute right.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def count @count end |
#escape ⇒ Object
Returns the value of attribute escape
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def escape @escape end |
#left ⇒ Object
Returns the value of attribute left
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def left @left end |
#maximum ⇒ Object
Returns the value of attribute maximum
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def maximum @maximum end |
#minimum ⇒ Object
Returns the value of attribute minimum
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def minimum @minimum end |
#right ⇒ Object
Returns the value of attribute right
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def right @right end |
#start ⇒ Object
Returns the value of attribute start
10 11 12 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10 def start @start end |
Instance Method Details
#leaf? ⇒ Boolean
12 13 14 |
# File 'lib/doom/render/ray_tracing/bvh.rb', line 12 def leaf? start >= 0 end |