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, #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(xsize, ysize, zsize) ⇒ Box

Returns a new instance of Box.



276
277
278
279
280
# File 'lib/rcad.rb', line 276

def initialize(xsize, ysize, zsize)
  @xsize = xsize
  @ysize = ysize
  @zsize = zsize
end

Instance Attribute Details

#xsizeObject

Returns the value of attribute xsize.



274
275
276
# File 'lib/rcad.rb', line 274

def xsize
  @xsize
end

#ysizeObject

Returns the value of attribute ysize.



274
275
276
# File 'lib/rcad.rb', line 274

def ysize
  @ysize
end

#zsizeObject

Returns the value of attribute zsize.



274
275
276
# File 'lib/rcad.rb', line 274

def zsize
  @zsize
end