Class: RuPov::Objects::InfiniteSolidPrimitives::Plane

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(normal, distance = 0) {|_self| ... } ⇒ Plane

Returns a new instance of Plane.

Yields:

  • (_self)

Yield Parameters:



230
231
232
233
234
# File 'lib/rupov.rb', line 230

def initialize( normal, distance=0 )
    super( 'plane' )
    self << Methods::MultiValue.new([normal,distance])
    yield(self) if block_given? and self.class == Plane
end