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