Class: RuPov::Objects::FiniteSolidPrimitives::Box
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(lowerLeftCorner, upperRightCorner) {|_self| ... } ⇒ Box
constructor
A new instance of Box.
Methods inherited from Base
Constructor Details
#initialize(lowerLeftCorner, upperRightCorner) {|_self| ... } ⇒ Box
Returns a new instance of Box.
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 |