Class: Box

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

Direct Known Subclasses

Cube

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(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

#xsizeObject

Returns the value of attribute xsize.



262
263
264
# File 'lib/rcad.rb', line 262

def xsize
  @xsize
end

#ysizeObject

Returns the value of attribute ysize.



262
263
264
# File 'lib/rcad.rb', line 262

def ysize
  @ysize
end

#zsizeObject

Returns the value of attribute zsize.



262
263
264
# File 'lib/rcad.rb', line 262

def zsize
  @zsize
end