Class: Laser::Cutter::Geometry::Dimensions
- Inherits:
-
Tuple
- Object
- Tuple
- Laser::Cutter::Geometry::Dimensions
show all
- Defined in:
- lib/laser-cutter/geometry/dimensions.rb
Constant Summary
Constants inherited
from Tuple
Tuple::PRECISION
Instance Attribute Summary
Attributes inherited from Tuple
#coords
Instance Method Summary
collapse
Methods inherited from Tuple
#+, #<, #<=>, #>, #[], #clone, #eql?, #initialize, #to_a, #to_s, #valid?, #x, #x=, #y, #y=
Instance Method Details
#d ⇒ Object
14
15
16
|
# File 'lib/laser-cutter/geometry/dimensions.rb', line 14
def d
coords.[](2)
end
|
#h ⇒ Object
10
11
12
|
# File 'lib/laser-cutter/geometry/dimensions.rb', line 10
def h
coords.[](1)
end
|
#hash_keys ⇒ Object
22
23
24
|
# File 'lib/laser-cutter/geometry/dimensions.rb', line 22
def hash_keys
[:w, :h, :d]
end
|
#separator ⇒ Object
18
19
20
|
# File 'lib/laser-cutter/geometry/dimensions.rb', line 18
def separator
'x'
end
|
#w ⇒ Object
6
7
8
|
# File 'lib/laser-cutter/geometry/dimensions.rb', line 6
def w
coords.[](0)
end
|