Class: Revolution

Inherits:
Shape
  • Object
show all
Defined in:
lib/rcad.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Shape

#*, #+, #-, #bbox, #extrude, #max_x, #max_y, #max_z, #min_x, #min_y, #min_z, #move_x, #move_y, #move_z, #render, #revolve, #rot_x, #rot_y, #rot_z, #scale_x, #scale_y, #scale_z, #x_size, #y_size, #z_size, #~@

Constructor Details

#initialize(profile, angle = nil) ⇒ Revolution

Returns a new instance of Revolution.



348
349
350
351
# File 'lib/rcad.rb', line 348

def initialize(profile, angle=nil)
  @profile = profile
  @angle = angle
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



346
347
348
# File 'lib/rcad.rb', line 346

def angle
  @angle
end

#profileObject (readonly)

Returns the value of attribute profile.



346
347
348
# File 'lib/rcad.rb', line 346

def profile
  @profile
end