Class: RuPov::Objects::FinitePatchPrimitives::Disc
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(centre, normal, radius, holeRadius = 0.0) {|_self| ... } ⇒ Disc
constructor
A new instance of Disc.
Methods inherited from Base
Constructor Details
#initialize(centre, normal, radius, holeRadius = 0.0) {|_self| ... } ⇒ Disc
Returns a new instance of Disc.
191 192 193 194 195 196 197 |
# File 'lib/rupov.rb', line 191 def initialize( centre, normal, radius, holeRadius=0.0 ) super( 'disc' ) multivalue = [centre,normal,radius] multivalue << holeRadius if holeRadius != 0.0 self << Methods::MultiValue.new( multivalue ) yield(self) if block_given? and self.class == Disc end |