module Crgeo
Defined in:
crgeo.crcrgeo/angle.cr
crgeo/bearing.cr
crgeo/center.cr
crgeo/distance.cr
crgeo/normalization.cr
crgeo/transfers.cr
crgeo/transfers/cartesian_to_spherical.cr
crgeo/transfers/deg_to_rad.cr
crgeo/transfers/rad_to_deg.cr
crgeo/transfers/spherical_to_cartesian.cr
crgeo/validations.cr
crgeo/validations/cartesian_coordinates.cr
crgeo/validations/spherical_coordinates.cr
Constant Summary
-
EARTH_RADIUS =
6371000.0
-
Earth radius in meters by https://en.wikipedia.org/wiki/Earth
-
VERSION =
"0.1.0"
Class Method Summary
- .angle(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : Float64
- .bearing_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64
- .center_of(points : Array(NamedTuple(lat: Float64, lon: Float64))) : NamedTuple(lat: Float64, lon: Float64)
- .distance_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64
- .lat_distance : Float64
- .lon_distance(lat : Float64) : Float64
- .normalize(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : NamedTuple(lat: Float64, lon: Float64)
- .radius
- .radius=(radius)
Class Method Detail
def self.angle(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : Float64
#
def self.bearing_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64
#
def self.center_of(points : Array(NamedTuple(lat: Float64, lon: Float64))) : NamedTuple(lat: Float64, lon: Float64)
#
def self.distance_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64
#
def self.normalize(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : NamedTuple(lat: Float64, lon: Float64)
#