module Indexable::WidthHeightDepth

Public Instance Methods

depth() click to toggle source

Get depth.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 29
def depth
  self[2]
end
depth=(depth) click to toggle source

Set depth.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 34
def depth=(depth)
  self[2]=depth
end
height() click to toggle source

Get height.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 19
def height
  self[1]
end
height=(height) click to toggle source

Set height.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 24
def height=(height)
  self[1]=height
end
width() click to toggle source

Get width.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 9
def width
  self[0]
end
width=(width) click to toggle source

Set width.

# File lib/sixarm_ruby_geometry/indexable/width_height_depth.rb, line 14
def width=(width)
  self[0]=width
end