module Crgeo

Defined in:

crgeo.cr
crgeo/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

Class Method Detail

def self.angle(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : Float64 #

[View source]
def self.bearing_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64 #

[View source]
def self.center_of(points : Array(NamedTuple(lat: Float64, lon: Float64))) : NamedTuple(lat: Float64, lon: Float64) #

[View source]
def self.distance_between(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Float64 #

[View source]
def self.lat_distance : Float64 #

[View source]
def self.lon_distance(lat : Float64) : Float64 #

[View source]
def self.normalize(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64, lat : Float64, lon : Float64) : NamedTuple(lat: Float64, lon: Float64) #

[View source]
def self.radius #

[View source]
def self.radius=(radius) #

[View source]