CrystalGpx::Point
Inherits Struct < Value < Object
Constants
D2R = Math::PI / 180.0
Constructors
new(lat : Float64, lon : Float64)
Sourcenew
SourceClass methods
direction(lat1, lon1, lat2, lon2)
return direction in degrees
before normalize south = -90 -> 180 north = 90 -> 0 east = 0 -> 90 west = 180 -> 270
after normalize south = 180 north = 0 east = 90 west = 270
direction_to_human(d : Float64) : String
Sourcedistance(lat1, lon1, lat2, lon2)
Sourcefrom_node(n : XML::Node)
SourceInstance methods
direction_to(other_lat : Float64, other_lon : Float64)
Sourcedirection_to(other_point : CrystalGpx::Point)
Sourcedistance_to(other_lat : Float64, other_lon : Float64)
Sourcedistance_to(other_point : CrystalGpx::Point)
Sourceele
Sourceele=(ele : Float64)
Sourcelat
Sourcelat=(lat : Float64)
Sourcelon
Sourcelon=(lon : Float64)
Sourcetime
Sourcetime=(time : Time)
Source