This is not an android question, nor is it even a java question. But I can
try to help anyway. You would probably get more help in a general purpose
programming forum such as codeguru. Anyway, you didn't give enough
information. Do you always want to go clockwise or counter-clockwise from
the s
On Tuesday, September 27, 2011 7:29:09 AM UTC-7, saex wrote:
>
> there is a function or something on Java to calculate the distance
> between two degree values? (min 0º and max 360º)
>
> for example:
>
> 350º to 15º = 25º
>
> 250º to 190º = 60º
>
>
Which way do you want it? They cannot both
Distance is the space between two points. You don't have enough info
to calculate the distance.
On Sep 27, 9:58 am, Lew Bloch wrote:
> On Tuesday, September 27, 2011 7:29:09 AM UTC-7, saex wrote:
>
> > there is a function or something on Java to calculate the distance
> > between two degree valu
I would like to reiterate what JackN said -- you don't have enough
info. But a good place to start would here:
http://www.movable-type.co.uk/scripts/latlong.html
For those interested, a routine for the distance between two points
(on Earth) in kilometers is:
public double gps2m(double lat_a, dou
If you already have the two numbers in degress that are between 0 and 360...
int iDiff = Math.abs( degree1 - degree2 );
If you need to find them from points or latitude/longitude, then you are
entering into linear math and you would need to look at things like:
http://chortle.ccsu.edu/VectorLes
But if you mean distance in degrees it would be 'x mod 360'
Op 29 sep. 2011 17:42 schreef "JackN" het volgende:
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To uns
6 matches
Mail list logo