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

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

Overview

A point in the plane, given by its x and y.

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) ⇒ Point

Parameters:

Returns:



10
11
12
# File 'lib/laser/cutter/geometry/point.rb', line 10

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