Module: Tracksperanto::PFCoords

Included in:
Export::PFMatchit, Export::PFTrack4, Import::PFTrack
Defined in:
lib/tracksperanto/pf_coords.rb

Instance Method Summary collapse

Instance Method Details

#from_pfcoord(pf_value) ⇒ Object



6
7
8
# File 'lib/tracksperanto/pf_coords.rb', line 6

def from_pfcoord(pf_value)
  pf_value.to_f + 0.5
end

#to_pfcoord(xperanto_value) ⇒ Object



2
3
4
# File 'lib/tracksperanto/pf_coords.rb', line 2

def to_pfcoord(xperanto_value)
  xperanto_value.to_f - 0.5
end