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-1.7.2 lib/middleware/golden.rb
tracksperanto-1.7.1 lib/middleware/golden.rb
tracksperanto-1.7.0 lib/middleware/golden.rb
tracksperanto-1.6.9 lib/middleware/golden.rb
tracksperanto-1.6.8 lib/middleware/golden.rb
tracksperanto-1.6.7 lib/middleware/golden.rb
tracksperanto-1.6.6 lib/middleware/golden.rb
tracksperanto-1.6.5 lib/middleware/golden.rb
tracksperanto-1.6.4 lib/middleware/golden.rb
tracksperanto-1.6.3 lib/middleware/golden.rb
tracksperanto-1.6.2 lib/middleware/golden.rb
tracksperanto-1.6.1 lib/middleware/golden.rb
tracksperanto-1.6.0 lib/middleware/golden.rb
tracksperanto-1.5.7 lib/middleware/golden.rb
tracksperanto-1.5.6 lib/middleware/golden.rb
tracksperanto-1.5.5 lib/middleware/golden.rb
tracksperanto-1.5.4 lib/middleware/golden.rb
tracksperanto-1.5.3 lib/middleware/golden.rb
tracksperanto-1.5.2 lib/middleware/golden.rb
tracksperanto-1.5.1 lib/middleware/golden.rb