Class: Laser::Cutter::Geometry::Point

Inherits:
Tuple
  • Object
show all
Defined in:
lib/laser-cutter/geometry/point.rb

Constant Summary

Constants inherited from Tuple

Tuple::PRECISION

Instance Attribute Summary

Attributes inherited from Tuple

#coords

Class Method Summary collapse

Methods inherited from Tuple

#+, #<, #<=>, #>, #[], #clone, #eql?, #hash_keys, #initialize, #separator, #to_a, #to_s, #valid?, #x, #x=, #y, #y=

Constructor Details

This class inherits a constructor from Laser::Cutter::Geometry::Tuple

Class Method Details

.[](*array) ⇒ Object



5
6
7
# File 'lib/laser-cutter/geometry/point.rb', line 5

def self.[] *array
  Point.new *array
end