Class: Doom::Render::RayTracing::Bvh::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/doom/render/ray_tracing/bvh.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def count
  @count
end

#escapeObject

Returns the value of attribute escape

Returns:

  • (Object)

    the current value of escape



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def escape
  @escape
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def left
  @left
end

#maximumObject

Returns the value of attribute maximum

Returns:

  • (Object)

    the current value of maximum



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def maximum
  @maximum
end

#minimumObject

Returns the value of attribute minimum

Returns:

  • (Object)

    the current value of minimum



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def minimum
  @minimum
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def right
  @right
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



10
11
12
# File 'lib/doom/render/ray_tracing/bvh.rb', line 10

def start
  @start
end

Instance Method Details

#leaf?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/doom/render/ray_tracing/bvh.rb', line 12

def leaf?
  start >= 0
end