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

#*, #+, #-, #align, #back, #bbox, #bottom, #center, #cx, #cy, #cz, #extrude, #front, #left, #maxx, #maxy, #maxz, #minx, #miny, #minz, #mirror, #mirror_x, #mirror_y, #mirror_z, #move, #move_x, #move_y, #move_z, #render, #revolve, #right, #rot_x, #rot_y, #rot_z, #rotate, #scale, #scale_x, #scale_y, #scale_z, #top, #transform, #xcenter, #ycenter, #zcenter, #~@

Constructor Details

#initialize(xsize, ysize, zsize) ⇒ Box

Returns a new instance of Box.



469
470
471
472
473
# File 'lib/rcad.rb', line 469

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

Instance Attribute Details

#xsizeObject

These override Shape.xsize etc.



467
468
469
# File 'lib/rcad.rb', line 467

def xsize
  @xsize
end

#ysizeObject

These override Shape.xsize etc.



467
468
469
# File 'lib/rcad.rb', line 467

def ysize
  @ysize
end

#zsizeObject

These override Shape.xsize etc.



467
468
469
# File 'lib/rcad.rb', line 467

def zsize
  @zsize
end