Class: Cube
Instance Attribute Summary
Attributes inherited from Box
Instance Method Summary collapse
-
#initialize(size) ⇒ Cube
constructor
A new instance of Cube.
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(size) ⇒ Cube
Returns a new instance of Cube.
284 285 286 |
# File 'lib/rcad.rb', line 284 def initialize(size) super(size, size, size) end |