# File ../lib/fox/core.rb, line 73 def -(other) if other.kind_of?(FXPoint) FXPoint.new(self.x - other.x, self.y - other.y) elsif other.kind_of?(FXSize) FXPoint.new(self.x - other.w, self.y - other.h) else raise TypeError, 'expected FXPoint or FXSize' end end