Sha256: 3b6219d0cc8cc312341cb8e8050a9d837a2505519c98958b302b0581eaa3b351

Contents?: true

Size: 348 Bytes

Versions: 50

Compression:

Stored size: 348 Bytes

Contents

# This middleware marks all trackers as being 100% accurate
class Tracksperanto::Middleware::Golden < Tracksperanto::Middleware::Base
  attr_accessor :enabled
  
  def enabled
    @enabled || false
  end
  
  def export_point(frame, float_x, float_y, float_residual)
    super(frame, float_x, float_y, (enabled ? 0.0 : float_residual))
  end
  
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
tracksperanto-2.1.0 lib/middleware/golden.rb
tracksperanto-2.0.2 lib/middleware/golden.rb
tracksperanto-2.0.1 lib/middleware/golden.rb
tracksperanto-2.0.0 lib/middleware/golden.rb
tracksperanto-1.9.9 lib/middleware/golden.rb
tracksperanto-1.9.8 lib/middleware/golden.rb
tracksperanto-1.9.6 lib/middleware/golden.rb
tracksperanto-1.9.5 lib/middleware/golden.rb
tracksperanto-1.9.4 lib/middleware/golden.rb
tracksperanto-1.9.3 lib/middleware/golden.rb
tracksperanto-1.9.2 lib/middleware/golden.rb
tracksperanto-1.9.1 lib/middleware/golden.rb
tracksperanto-1.9.0 lib/middleware/golden.rb
tracksperanto-1.8.4 lib/middleware/golden.rb
tracksperanto-1.8.2 lib/middleware/golden.rb
tracksperanto-1.8.1 lib/middleware/golden.rb
tracksperanto-1.8.0 lib/middleware/golden.rb
tracksperanto-1.7.5 lib/middleware/golden.rb
tracksperanto-1.7.4 lib/middleware/golden.rb
tracksperanto-1.7.3 lib/middleware/golden.rb