Method: Point2D#-

Defined in:
lib/cem/cruzzles.rb

#-(other) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/cem/cruzzles.rb', line 48

def -(other)
  if other.is_a? Array
    other.map { |o| self - o }
  else
    Point2D.new(x - other.x, y - other.y)
  end
end