struct

CrystalGpx::Point

Inherits Struct < Value < Object

Constants

D2R = Math::PI / 180.0

Constructors

new(lat : Float64, lon : Float64)
Source

Class 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

Source
direction(point1 : CrystalGpx::Point, point2 : CrystalGpx::Point)
Source
direction_to_human(d : Float64) : String
Source
distance(lat1, lon1, lat2, lon2)
Source
distance(point1 : CrystalGpx::Point, point2 : CrystalGpx::Point)
Source
from_node(n : XML::Node)
Source
interpolate(points : Array(CrystalGpx::Point), time : Time)
Source

Instance methods

direction_to(other_lat : Float64, other_lon : Float64)
Source
direction_to(other_point : CrystalGpx::Point)
Source
distance_to(other_lat : Float64, other_lon : Float64)
Source
distance_to(other_point : CrystalGpx::Point)
Source
ele=(ele : Float64)
Source
lat=(lat : Float64)
Source
lon=(lon : Float64)
Source
time
Source
time=(time : Time)
Source