Sha256: 75b1a323c1750c39037bd171d7fa886ed0d79410d563c4c6d4b9459371e5368e

Contents?: true

Size: 637 Bytes

Versions: 31

Compression:

Stored size: 637 Bytes

Contents

module Processing


  # Touch object.
  #
  class Touch

    # Identifier of each touch
    #
    attr_reader :id

    # Horizontal position of touch
    #
    # @return [Numeric] position x
    #
    attr_reader :x

    # Vertical position of touch
    #
    # @return [Numeric] position y
    #
    attr_reader :y

    # @private
    def initialize(id, x, y)
      @id, @x, @y = id, x, y
    end

    # Returns a string containing a human-readable representation of object.
    #
    # @return [String] inspected text
    #
    def inspect()
      "#<Processing::Touch: id:#{id} x:#{x} y:#{y}>"
    end

  end# Touch


end# Processing

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
processing-1.1 lib/processing/touch.rb
processing-1.0.3 lib/processing/touch.rb
processing-1.0.2 lib/processing/touch.rb
processing-1.0.1 lib/processing/touch.rb
processing-0.5.34 lib/processing/touch.rb
processing-0.5.33 lib/processing/touch.rb
processing-0.5.32 lib/processing/touch.rb
processing-0.5.31 lib/processing/touch.rb
processing-0.5.30 lib/processing/touch.rb
processing-0.5.29 lib/processing/touch.rb
processing-0.5.28 lib/processing/touch.rb
processing-0.5.27 lib/processing/touch.rb
processing-0.5.26 lib/processing/touch.rb
processing-0.5.25 lib/processing/touch.rb
processing-0.5.24 lib/processing/touch.rb
processing-0.5.23 lib/processing/touch.rb
processing-0.5.22 lib/processing/touch.rb
processing-0.5.21 lib/processing/touch.rb
processing-0.5.20 lib/processing/touch.rb
processing-0.5.19 lib/processing/touch.rb