Class: RuPov::Objects::FiniteSolidPrimitives::Sphere
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(centre, radius) {|_self| ... } ⇒ Sphere
constructor
A new instance of Sphere.
Methods inherited from Base
Constructor Details
#initialize(centre, radius) {|_self| ... } ⇒ Sphere
Returns a new instance of Sphere.
115 116 117 118 119 |
# File 'lib/rupov.rb', line 115 def initialize( centre, radius ) super( 'sphere' ) self << Methods::VectorRadius.new( centre, radius) yield(self) if block_given? and self.class == Sphere end |