Sha256: 1f20b85d550dfdffa1a438cafae1a38b94359b72dec7a0429378f532a3e843e1

Contents?: true

Size: 165 Bytes

Versions: 31

Compression:

Stored size: 165 Bytes

Contents

module Tracksperanto::PFCoords
  def to_pfcoord(xperanto_value)
    xperanto_value.to_f - 0.5
  end
  
  def from_pfcoord(pf_value)
    pf_value.to_f + 0.5
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
tracksperanto-4.2.0 lib/tracksperanto/pf_coords.rb
tracksperanto-4.1.3 lib/tracksperanto/pf_coords.rb
tracksperanto-4.1.2 lib/tracksperanto/pf_coords.rb
tracksperanto-4.1.0 lib/tracksperanto/pf_coords.rb
tracksperanto-4.0.0 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.9 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.8 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.7 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.6 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.5 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.4 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.2 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.1 lib/tracksperanto/pf_coords.rb
tracksperanto-3.5.0 lib/tracksperanto/pf_coords.rb
tracksperanto-3.4.1 lib/tracksperanto/pf_coords.rb
tracksperanto-3.4.0 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.13 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.12 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.11 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.10 lib/tracksperanto/pf_coords.rb