Class: Revolution
Instance Attribute Summary collapse
-
#angle ⇒ Object
readonly
Returns the value of attribute angle.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
Instance Method Summary collapse
-
#initialize(profile, angle = nil) ⇒ Revolution
constructor
A new instance of Revolution.
Methods inherited from Shape
#*, #+, #-, #bbox, #extrude, #max_x, #max_y, #max_z, #min_x, #min_y, #min_z, #mirror_x, #mirror_y, #mirror_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.
360 361 362 363 |
# File 'lib/rcad.rb', line 360 def initialize(profile, angle=nil) @profile = profile @angle = angle end |
Instance Attribute Details
#angle ⇒ Object (readonly)
Returns the value of attribute angle.
358 359 360 |
# File 'lib/rcad.rb', line 358 def angle @angle end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
358 359 360 |
# File 'lib/rcad.rb', line 358 def profile @profile end |