Class: RuPov::Objects::FiniteSolidPrimitives::SuperEllipsoid

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(roundness) {|_self| ... } ⇒ SuperEllipsoid

Returns a new instance of SuperEllipsoid.

Yields:

  • (_self)

Yield Parameters:



139
140
141
142
143
# File 'lib/rupov.rb', line 139

def initialize( roundness )
    super('superellipsoid')
    self << roundness
    yield(self) if block_given? and self.class == SuperEllipsoid
end