Sha256: 10427703e888867cedbb6895e8ca1d84abe2b40cbed4125a3a1e947f1a4eae7b

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

class TuioParameter
  attr_accessor :session_id, :x_pos, :y_pos, :x_speed, :y_speed, :motion_accel
  
  def self.new_from_initial_params( session_id, x_pos, y_pos )
    new session_id, x_pos, y_pos, 0.0, 0.0, 00
  end
  
  def initialize( session_id, x_pos, y_pos, x_speed, y_speed, motion_accel )
    @session_id = session_id
    @x_pos = x_pos
    @y_pos = y_pos
    @x_speed = x_speed
    @y_speed = y_speed
    @motion_accel = motion_accel
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
aberant-tuio-ruby-0.2.0 lib/tuio_parameter.rb
aberant-tuio-ruby-0.2.1 lib/tuio-ruby/tuio_parameter.rb
tuio-ruby-0.2.5 lib/tuio-ruby/tuio_parameter.rb
tuio-ruby-0.2.4 lib/tuio-ruby/tuio_parameter.rb
tuio-ruby-0.2.3 lib/tuio-ruby/tuio_parameter.rb
tuio-ruby-0.2.2 lib/tuio-ruby/tuio_parameter.rb