Sha256: c5019852c59e69ffd2f69271b490daed65b6a26bc6718dcb2d1004848b99b962

Contents?: true

Size: 297 Bytes

Versions: 7

Compression:

Stored size: 297 Bytes

Contents

class Tracksperanto::Middleware::Slipper < Tracksperanto::Middleware::Base
  DEFAULT_SLIP = 0
  attr_accessor :slip
  
  def slip
    @slip.to_i || DEFAULT_SLIP
  end
  
  def export_point(frame, float_x, float_y, float_residual)
    super(frame + slip, float_x, float_y, float_residual)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tracksperanto-1.1.1 lib/middleware/slipper.rb
tracksperanto-1.1.0 lib/middleware/slipper.rb
tracksperanto-1.0.6 lib/middleware/slipper.rb
tracksperanto-1.0.4 lib/middleware/slipper.rb
tracksperanto-1.0.2 lib/middleware/slipper.rb
tracksperanto-1.0.1 lib/middleware/slipper.rb
tracksperanto-1.0.0 lib/middleware/slipper.rb