class Gpx2png::Base
Attributes
color[RW]
coords[RW]
zoom[RW]
Public Class Methods
deg2rad(deg)
click to toggle source
# File lib/gpx2png/base.rb, line 25 def self.deg2rad(deg) return deg * Math::PI / 180.0 end
new()
click to toggle source
# File lib/gpx2png/base.rb, line 8 def initialize @coords = Array.new @zoom = 9 @verbose = true end
rad2deg(rad)
click to toggle source
Some math stuff
# File lib/gpx2png/base.rb, line 21 def self.rad2deg(rad) return rad * 180.0 / Math::PI end
Public Instance Methods
add(lat, lon)
click to toggle source
# File lib/gpx2png/base.rb, line 14 def add(lat, lon) @coords << { lat: lat, lon: lon } end