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-3.3.9 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.8 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.7 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.6 lib/tracksperanto/pf_coords.rb
tracksperanto-3.3.0.pre lib/tracksperanto/pf_coords.rb
tracksperanto-3.2.2 lib/tracksperanto/pf_coords.rb
tracksperanto-3.2.1 lib/tracksperanto/pf_coords.rb
tracksperanto-3.2.0 lib/tracksperanto/pf_coords.rb
tracksperanto-3.1.0 lib/tracksperanto/pf_coords.rb
tracksperanto-3.0.1 lib/tracksperanto/pf_coords.rb
tracksperanto-3.0.0 lib/tracksperanto/pf_coords.rb