diff options
Diffstat (limited to 'lib/tom_tom/matrix/point.rb')
| -rw-r--r-- | lib/tom_tom/matrix/point.rb | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/lib/tom_tom/matrix/point.rb b/lib/tom_tom/matrix/point.rb new file mode 100644 index 000000000..435b4d4b0 --- /dev/null +++ b/lib/tom_tom/matrix/point.rb @@ -0,0 +1,18 @@ +module TomTom +  class Matrix +    class Point +      attr_reader :coordinates, :id + +      def initialize(coordinates, id) +        @coordinates = coordinates +        @id = id +      end + +      def ==(other) +        other.is_a?(self.class) && +          @coordinates == other.coordinates && +          @id == other.id +      end +    end +  end +end | 
