Sha256: ae68337769b284cfc00a3811b0f6d6df4c563a16a5855b9529c2c8b270c7ebdc

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 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

  end# Touch


end# Processing

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
processing-0.5.5 lib/processing/touch.rb