All Projects → ehis → distance

ehis / distance

Licence: MIT license
Go lib to calculate distance 🗺

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to distance

Stereo Vision
This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
Stars: ✭ 160 (+900%)
Mutual labels:  distance
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (+1300%)
Mutual labels:  distance
geometry-library
PHP Geometry Library provides utility functions for the computation of geometric data on the surface of the Earth. Code ported from Google Maps Android API.
Stars: ✭ 132 (+725%)
Mutual labels:  distance
Haversine
Calculate the distance bewteen 2 points on Earth
Stars: ✭ 166 (+937.5%)
Mutual labels:  distance
Java String Similarity
Implementation of various string similarity and distance algorithms: Levenshtein, Jaro-winkler, n-Gram, Q-Gram, Jaccard index, Longest Common Subsequence edit distance, cosine similarity ...
Stars: ✭ 2,403 (+14918.75%)
Mutual labels:  distance
Evfacetracker
Calculate the distance and angle of your device with regards to your face
Stars: ✭ 251 (+1468.75%)
Mutual labels:  distance
Mapbox Gl Controls
Stars: ✭ 93 (+481.25%)
Mutual labels:  distance
geodesy-php
Geodesy PHP - Port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates. It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.
Stars: ✭ 26 (+62.5%)
Mutual labels:  distance
Geokit
Geo-Toolkit for PHP.
Stars: ✭ 223 (+1293.75%)
Mutual labels:  distance
ARGoal
Get more goals. | Virtual Goals & Goal Distance | App Doctor Hu
Stars: ✭ 14 (-12.5%)
Mutual labels:  distance
Cheap Ruler Go
📏 cheapruler in Go: fast geodesic measurements
Stars: ✭ 176 (+1000%)
Mutual labels:  distance
Distancemeasure
📷 An android demo which can measure the distance from user to something while taking photos ( Android 拍照测距 )
Stars: ✭ 185 (+1056.25%)
Mutual labels:  distance
Distances.jl
A Julia package for evaluating distances (metrics) between vectors.
Stars: ✭ 251 (+1468.75%)
Mutual labels:  distance
Textdistance
Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
Stars: ✭ 2,575 (+15993.75%)
Mutual labels:  distance
placekey-py
placekey.io
Stars: ✭ 49 (+206.25%)
Mutual labels:  distance
Distancepicker
Custom UIKit control to select a distance with a pan gesture, written in Swift
Stars: ✭ 118 (+637.5%)
Mutual labels:  distance
Stringsimilarity.net
A .NET port of java-string-similarity
Stars: ✭ 242 (+1412.5%)
Mutual labels:  distance
go-coronanet
Go implementation of the Corona Network
Stars: ✭ 35 (+118.75%)
Mutual labels:  distance
fasterRaster
Faster raster processing using GRASS GIS
Stars: ✭ 18 (+12.5%)
Mutual labels:  distance
levenshtein-edit-distance
Levenshtein edit distance
Stars: ✭ 59 (+268.75%)
Mutual labels:  distance

distance

CircleCI

Using the Haversine formula to calculate the great-circle distance between 2 points.

Installation

go get -u github.com/ehis/distance

Usage

  • distance.GreatCircle() - returns the great-circle distance between 2 points.
// []float64{longitude, latitude}
pt1 := []float64{-180, 40.71427}
pt2 := []float64{180, 40.71427}

d := distance.GreatCircle(pt1, pt2) 
  • distance.PointSegment() - return the distance between a point and the closest point on a line segment.
// []float64{x, y}
pt := []float64{3, 2}
pt1 := []float64{-2, 1}
pt2 := []float64{5, 3}
d := distance.PointSegment(pt, pt1, pt2)

Inspiration from distance - an elixir library

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].