Class: Box
Direct Known Subclasses
Instance Attribute Summary collapse
-
#xsize ⇒ Object
Returns the value of attribute xsize.
-
#ysize ⇒ Object
Returns the value of attribute ysize.
-
#zsize ⇒ Object
Returns the value of attribute zsize.
Instance Method Summary collapse
-
#initialize(xsize, ysize, zsize) ⇒ Box
constructor
A new instance of Box.
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(xsize, ysize, zsize) ⇒ Box
Returns a new instance of Box.
264 265 266 267 268 |
# File 'lib/rcad.rb', line 264 def initialize(xsize, ysize, zsize) @xsize = xsize @ysize = ysize @zsize = zsize end |
Instance Attribute Details
#xsize ⇒ Object
Returns the value of attribute xsize.
262 263 264 |
# File 'lib/rcad.rb', line 262 def xsize @xsize end |
#ysize ⇒ Object
Returns the value of attribute ysize.
262 263 264 |
# File 'lib/rcad.rb', line 262 def ysize @ysize end |
#zsize ⇒ Object
Returns the value of attribute zsize.
262 263 264 |
# File 'lib/rcad.rb', line 262 def zsize @zsize end |