About 50 results
Open links in new tab
  1. I want to calculate the distance between two points in Java

    Jan 21, 2013 · I have no problems whatsoever with my program aside from one issue: the program won't accept the code I've written for the distance between the two center points. I can figure out the if/else …

  2. Calculate distance between two latitude-longitude points? (Haversine ...

    Aug 26, 2008 · How do I calculate the distance between two points specified by latitude and longitude? For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to …

  3. Getting distance between two points based on latitude/longitude

    Oct 17, 2013 · I tried implementing the formula in Finding distances based on Latitude and Longitude. The applet does good for the two points I am testing: Yet my code is not working. from math import …

  4. Get distance between two points in canvas - Stack Overflow

    Jan 4, 2014 · 17 To find the distance between 2 points, you need to find the length of the hypotenuse in a right angle triangle with a width and height equal to the vertical and horizontal distance:

  5. c# - Calculating Distance between two Latitude and Longitude ...

    Jun 16, 2011 · I'm calculating the distance between two GeoCoordinates. I'm testing my app against 3-4 other apps. When I'm calculating distance, I tend to get an average of 3.3 miles for my calculation …

  6. How can the Euclidean distance be calculated with NumPy?

    Sep 10, 2009 · Since the distance from a point to itself is 0, the diagonals of this matrix will be all zero. The same task can be performed with numpy-only methods using broadcasting.

  7. Distance formula between two points in a list - Stack Overflow

    Jan 29, 2014 · Distance formula between two points in a list Asked 14 years, 9 months ago Modified 5 years, 9 months ago Viewed 96k times

  8. Shortest distance between a point and a line segment

    I need a basic function to find the shortest distance between a point and a line segment. Feel free to write the solution in any language you want; I can translate it into what I'm using (Javascri...

  9. Calculating distance between two points (Latitude, Longitude)

    Oct 23, 2012 · I am trying to calculate the distance between two positions on a map. I have stored in my data: Longitude, Latitude, X POS, Y POS. I have been previously using the below snippet. …

  10. How do I find the distance between two points? [closed]

    Jun 11, 2013 · Let's say I have x1, y1 and also x2, y2. How can I find the distance between them? It's a simple math function, but is there a snippet of this online?