Class: RuPov::Objects::FiniteSolidPrimitives::Box

Inherits:
Base
  • Object
show all
Defined in:
lib/rupov.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#<<, #to_s

Constructor Details

#initialize(lowerLeftCorner, upperRightCorner) {|_self| ... } ⇒ Box

Returns a new instance of Box.

Yields:

  • (_self)

Yield Parameters:



48
49
50
51
52
53
# File 'lib/rupov.rb', line 48

def initialize( lowerLeftCorner, upperRightCorner )
    super( 'box' )
    self << lowerLeftCorner
    self << upperRightCorner
    yield(self) if block_given? and self.class == Box
end